Re: Analog to Digital Conversion By Pic Microcontroller
02/21/2009 4:01 PM
Assuming you don't use a PIC micro with an A to D built in and you're not after great accuracy.
The simplest way would be to use an I/O pin with a capacitor and resistor on it and time the charge onto the capacitor to change state, then changing the I port to an output port discharge the capacitor and repeat....
Use a simple lookup table to convert from an exponential voltage related to charge to a linear V vs charge and its done!!!
__________________
A little knowledge is a dangerous thing - Googling is far worse!
"Almost" Good Answers: