I noticed a wrong configuration with the TRISD. I changed this and was still having problems. I decided to try connecting the LCD on a different pins and it appears to work now. Here is what I did:
I will review the config settings thread. I will try to clean up my code and post it.Code:DEFINE LCD_DREG PORTD 'set LCD DATA port DEFINE LCD_DBIT 0 'set starting DATA bit (0 or 4) if 4-bit DEFINE LCD_RSREG PORTD ' Set LCD Register Select port DEFINE LCD_RSBIT 4 ' Set LCD Register Select bit DEFINE LCD_EREG PORTC ' Set LCD Enable port DEFINE LCD_EBIT 3 ' Set LCD Enable bit DEFINE LCD_BITS 4 ' Set LCD bus size (4 or 8 bits) DEFINE LCD_LINES 2 ' Set number of lines on LCD DEFINE LCD_COMMANDUS 2000 ' Set command delay time in us DEFINE LCD_DATAUS 50 ' Set data delay time in us




Bookmarks