> Your only delay now is how long it takes to charge that >> cap through the resistor network - but since this is a slowly changing >> signal (one hopes!) that shouldn't matter. > > > The source resistance still matters, because the AVR inputs have > leakage currents into or out of the pins. If the source resistance is > large relative to that current, then the voltage on the cap will be > affercted, or dominated, by that leakage current. > > Check the specs, and design to survive the maximum specified leakage. Good point, I didn't consider that leakage. Its never just a simple answer is it? I'm still curious enough to experiment with this idea compared to my typical OpAmp solution. DLC -- Dennis Clark
Message
Re: [AVR-Chat] Re: Using the ADC to measure the battery supply?
2007-06-19 by dlc@frii.com