I see a couple of problems.
R/W from the LCD should go to ground(zero).
Looking at your defines again the following is not a define.
Take a look at this page and connect the LCD that way, 8 bit bus setup does not gain you much, but cost four pins, so go with 4 bit bus.Code:DEFINE LCD_RWREG PORTE DEFINE LCD_RWBIT 2
http://www.rentron.com/PICX1.htm
Then go here to see how the defines should be setup.
http://www.rentron.com/PICX2.htm
Let us know how it goes.
Bookmarks