EveryCircuit
Contact
Reviews
Home
Leopy
modified 3 years ago

Analog Ramp ADC

2
5
366
04:09:33
This "analog ramp analog-to-digital converter" (ADC) is the discrete-logic implementation of the homonym ADC sometimes found inside microcontrollers and DSPs. Change the voltage at the input, at the far left, then run the simulation; once started, press the push-button at the center-down of the schematic; this will start the conversion. The voltage is proportional to the number of clock pulses that "passed" during the conversion phase (at the output of the far right logic gate). With the last update, the voltage can be read on the 7-segm display. ABOUT THIS CIRCUIT The main benefits are: - easy and cost-effective construction, at the silicon level - does not require a DAC: hence, it's intrinsically monotonic, does not generate missing code and the resolution is set mainly by the comparator's offset voltage. The downsides are: - analog component design can be difficult, once developed onto the silicon, since the team is specialized on digital circuitry (circuits like this are usually implemented on microcontrollers (aka, digital) ICs) - the various analog parameters must be kept tightly under control, otherwise leakage currents and offset voltages will cause wrong readings. - this is a somewhat temperature-dependent design, so the operating temperature range is constrained. - speed is low, since in the worst case scenario the capacitors must charge up to the full positive rail. If the ADC is n-bits, then the output clock pulses used to determine the input voltage will be 2ⁿ. For these reasons, it's one of the least used ADC organizations used inside modern ICs, compared to other tecnologies. Note: this implementation does not include the obligatory sample-and-hold circuitry at the input stage. Without it, if the input changes during a measurement, the result will be wrong. P.S.: Thanks to PrathikP for the suggestion of the output value visualization on the 7-segm display!
published 5 years ago
PrathikP
5 years ago
Why don't you connect the output of the gate to an up counter and 7 segment display to display the voltage.
Leopy
5 years ago
You're absolutely right! I've just updated the simulation and put your name. Thanks!
PrathikP
5 years ago
Now the counter needs a reset mechanism. Everytime the push button is pressed, the capacitor certainly discharges, but the counter doesn't reset and counts beyond 2. Check it out.
PrathikP
5 years ago
Simply connecting the output of the lower op amp to the reset of the counter does the job
Leopy
5 years ago
Top 👍

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