Hi,

I got some problem with displaying 20 X 4 line LCD which the controller chip is HD 44780.Actually,when i programmed the chip according to the code below,the lcd is not working!.I even checked the PORTB pin and it seems not changing state?.But my board is working as i checked other programs (I2C,SPI) but this one is not working?.I feel weird.This program is actually sample program from Melabs itself.I wired the final 4 bit from lcd to PORTB.0 to PORTB.3 and the EBIT to to PORTD.7 and for sure RSBIT to PORTD.6.
What is my mistake??Do i have to insert more code like LCD lines and delay???PLS HELP!


DEFINE OSC 20



DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 4 ' 4 bit selected
DEFINE LCD_RSREG PORTD
DEFINE LCD_RSBIT 6 ' Reset Pin
DEFINE LCD_EREG PORTD
DEFINE LCD_EBIT 7 ' Enable Pin


pause 500 ' Insert Delay for LCD to Power_Up.


loop:


Lcdout $fe, 1 ' Clear LCD screen
Lcdout "Hello" ' Display Hello
Pause 500 ' Wait .5 second

Lcdout $fe, 1 ' Clear LCD screen
Lcdout "World"
Pause 500 ' Wait .5 second

Goto loop ' Do it forever


YOUR HELP KINDLY ACCEPTED