Originally posted by Melanie
Some suggestions...

1. Have you remembered the pull-up Resistor on RA4? On any other pin you can dispose with it, but if you use RA4 then it's gotta be there.
Oh yes.... definitely

2. You sure you haven't got anything miss-wired? RA0 goes to DB4... easy to mistake and connect it to DB0... RS-bit and E-bit are easily cross-connected to the wrong pins...
Checked it many times. The connections are correct.

3. Is your contrast set so dark that everything is blacked-out?
When i turned the pot from one extreme to the other, the display changes from nothing to ........you've gussed it!!! black boxes......
Originally posted by Squibcakes
Number 1 trap for young players... Read page 189

For 4-bit interface data, only four bus lines (DB4 to DB7) are used for transfer.

Bus lines DB0 to DB3 are disabled.

So connect the Pic to DB4 to DB7, and recode your program,

DEFINE LCD_DBIT 4 'Use DB4 DB5 DB6 DB7


See how you go.



J
Changed it. Nothing is displayed on the LCD. If i put
DEFINE LCD_DBIT 0 , then black boxes reappear.