I configured the code for a 16F628a and it worked fine.
Now, I am trying to setup the same LCD for a 16F685.
#CONFIG
__config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
#ENDCONFIG
high PortC.0 'LED on Port to check to see if PIC boots
DEFINE OSC 4
define LCD_DREG PORTA ' Data on PORTA
define LCD_DBIT 0 ' Data starts on PORTA.0
DEFINE LCD_RSREG PORTA ' RS on PORTA
DEFINE LCD_RSBIT 4 ' RS on A4
DEFINE LCD_EREG PORTA ' E on PORTA
DEFINE LCD_EBIT 5 ' E on A5
DEFINE LCD_BITS 4 ' LCD 4 bit mode
DEFINE LCD_LINES 2 ' 2 line LCD display
Define LCD_COMMANDUS 2000 ' Command Delay (uS)
Define LCD_DATAUS 50 ' Data Delay (uS)
Pause 500 ' Wait for LCD to startup
mainloop:
LCDOut $fe, 1 ' Clear LCD screen
LCDOut "Hello"
toggle portc.0
pause 1000
GoTo mainloop
End
Bookmarks