Need a better algorithm for my ADC

Printable View