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
DIV32 Is this place on moon or timbaktoo?
Hey ! all the time I thought I was most dumbo person for Basic espeacilly for
pretty type.
Now Im relieved that there is atleast one more and may be many thousands!
I hope Josh takes some troubles with searching on forum.
I don't have experience with PIC or other Basic but in assembly there is
DIV32 routine - sort of macro - for dividing 32bit version.
wish U best!