Hi All,

I am a new commer to PIC and Picbasic Pro.
(Previously I have worked with Atmel 89c52)
(And being first time,,, lot of struggling with pic :-(

LCD not displaying anything. Please help me.
(this LCD has worked well with 89c52, its china make....)

I am using 16F690 and using following connections for LCD.

I have connected:
RC0 to DB4 of LCD
RC1 to DB5
RC2 to DB6
RC3 to DB7
RB4 to RS of lcd
RB6 to E

My code is:

DEFINE LCD_DREG PORTC
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 4
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 6
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 100
DEFINE LCD_BITS 4

ADCON0 = 0 ' Set all digital
CM1CON0 = 0 ' Analog comparators off
CM2CON0 = 0
SSPCON = 0

Lcdout $fe, 1 ' Clear screen

Pause 1000 ' Wait for LCD to start up


mainloop:
Lcdout $fe, 1 ' Clear screen
Pause 1500 ' Wait .5 second
Lcdout "Hello" ' Display "Hello"
Pause 500 ' Wait .5 second
Lcdout $fe, $c0, "World"
Pause 1500 ' Wait .5 second
Goto mainloop ' Do it forever

End

Regards,

Devidas