Quote Originally Posted by rshaver View Post
Define LCD_DREG PORTA
Define LCD_DBIT 4
...
ANSEL = %00010000 ' Make the pot analog and rest digital
...
mainloop: Adcin 4, x ' Read the pot
Looks to me you are using RA4 as both a data line digital output for the LCD and an analog input for the pot - pick one and move the other. Your ANSEL has it as the analog input now ... makes sense the LCD is not working.