voltage measurements without ADC !!!
Hi, N'geron
there's a way to do it with a simple 16F84 an the RC Time command ...
look :
first : connect a resistor between your voltage to be mesured and the input port. a capacitor between input and ground.
second : make your input a 0 v ... output
Third: make the input ... an input with RCTime and measure the time to go up from 0v to the pic transition input voltage (1.5v) ...
so, time = - RC Log ( 1.5/ Vbatt ) ...
a small lookdown table will easily translate time to voltage, if needed.
of course, you must reduce your batt voltage to fit into the 0 - 5 volts range or use a zener not to exceed the Pic input range.
not so precise as an ADC ... but useful here.
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks