EveryCircuit
Contact
Reviews
Home
Sheen140
modified 6 years ago

Pulse Width Modulation ADC - Version 2.0

2
2
445
05:08:23
This circuit uses a comparator (or an op amp in this circuit) to compare an analog input voltage on the non inverting input to a triangle or sawtooth waveform on the inverting input. This generates a PWM signal whose positive duty cycle corresponds to the analog value of the input signal. In order to convert this pwm signal to a digital one, you simply AND a counter clock signal, and a start/stop square wave to start and stop the counting. The output pulses are then sent on to a counter IC to convert to a binary value corresponding to the analog input voltage. The binary value is the last value output by the counters before being reset by the mosfet pulse circuit. This is a very slow circuit to watch, but try playing around with the wiper position of the potentiometer to change the analog input voltage and see how the circuit performs. As you can probably tell just by looking at it and watching it perform, I wouldn't say this is actually a practical ADC type, just fun to play around with Fixed the simulation time issue somewhat, now you shouldn't have to wait an hour to see how each cycle works!
published 6 years ago
hurz
6 years ago
this is to help you to overcome the simulation speed limit a little. Its not finished, anyway its your circuit http://everycircuit.com/circuit/6161911201398784
Sheen140
6 years ago
@hurz my knight in shining armor as always! Does using a bunch of separate pulse generating sources in series like that instead of one single high frequency square wave help to avoid the frequency/ timebase issues?

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2025 by MuseMaze, Inc.     Terms of use     Privacy policy