1 DEFINE LCD_DREG PORTD
2 DEFINE LCD_DBIT 4
This tells PBP that you have your LCD data-bus connected to PortD and that it "starts" at bit 4 of that port. In other word, the databus is connected to PortD.4-7 which means you are using it in 4-bit mode and that you'll also need:
DEFINE LCD_BITS 4
To tell PBP that you're using it in 4bit mode.
3 DEFINE LCD_RSREG PORTE
4 DEFINE LCD_RSBIT 0
This tells PBP that the RegisterSelect of the LCD is connected to PORTE.0
5 DEFINE LCD_EREG PORTE
6 DEFINE LCD_EBIT 1
This tells PBP that the Enable of the LCD is connected to PORTE.1
If your PIC doesn't have a PORTE then change the DEFINEs so it matches what you have - that's what they are there for.
/Henrik.
Bookmarks