Hi, Robert
I think we mixed DIGITAL and ANALOG inputs ...
here you want 0 > 12 v to be 0 > 5 v !!!
so, you need a voltage DIVIDER ...
see Darrel's site for such an application :
http://www.pbpgroup.com/modules/wfse...p?articleid=25
Everything explained ...
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