Still Hadware problem ...
As I told you ...
the default settings of the LCD USE Porta.4 ... and make it AUTOMATICALLY an OUTPUT to drive the RS LCD pin.
So, you MUST free up Porta.4 and then re-assign RS Drive.
YES, your LCD will work ... but not the ADC input !!!
so, otherwise you had not told us everything, or the Pic ref is not 687, you have your pot wiper AND the RS pin tied together ... not that good.
No use to set ALL Porta to input : the LCDout statement will make the to-LCD pins as outputs, each time LCDout command is used.
But, I think a little scheme of yours could really help !!! ... cause you're not so explicit ...
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