Hi everyone
I'm trying to write a c code to read a 0-20v input on a pic16F690 using MPLAB IDE
and display it on a LCD.
My code for the LCD works great, but when I read the analog input and display it I get the wrong result.
Can anyone give me the correct formula and the correct code.
Thanks
hitechbob
I'm trying to write a c code to read a 0-20v input on a pic16F690 using MPLAB IDE
and display it on a LCD.
My code for the LCD works great, but when I read the analog input and display it I get the wrong result.
Can anyone give me the correct formula and the correct code.
Thanks
hitechbob