Hi all,

I am using pic 16f628 with pic basic pro compiler ver 2.46.I am tying to display to an lcd screen equivalent to hd44780 the word hello but i can't make it.When i use the same program with 4bit interface everything working fine(DEFINE LCD_BITS 4).but when i choose 8 bit nothing appear to lcd.I don't know also if the connection is correct because i never used before 8bit interface.the 4bit connection is according to manual.
the code is here
LCD IS connected as follows:
' LCD PIC
' DB0 PORTB.0
' DB1 PORTB.1
' DB2 PORTB.2
' DB3 PORTB.3
' DB4 PORTB.4
' DB5 PORTB.5
' DB6 PORTB.6
' DB7 PORTB.7
' RS PORTA.4 (add 4.7K pullup resistor to 5 volts)
' E PORTA.1
' RW Ground
' Vdd 5 volts
' Vss Ground
' Vo 20K potentiometer (or ground)
'
@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT
DEFINE LCD_DREG PORTB
DEFINE LCD_RSREG PORTA
define LCD_DBIT 0
DEFINE LCD_RSBIT 4
DEFINE LCD_EREG PORTA
DEFINE LCD_EBIT 1
DEFINE LCD_BITS 8
CMCON=7
TRISA=0
INTCON=0
TRISB=0
Pause 1000 ' Wait for LCD to startup
loop:
Lcdout $FE,1 ' Clear LCD screen
pause 500
lcdout "HELLO" ' Display Hello
Pause 500 ' Wait .5 second
end