Press the button in the bottom left to start!
Only works to -2.19V. Input voltages must be negative due to inversion at DAC.
Here I have created a Digital Ramp ADC. This is used to convert analogue circuits when speed isn't an issue and/or simplicity is needed.
The first counter I am using as an SR Latch. This then allows a clock signal to increment a counter, the binary digits coming out of the counter are converted to analogue and compared to the input analogue signal at the top right Op-Amp.
When the counter analogue signal has surpassed the input signal, the counter stops, and you have the binary associated with with that analogue signal.