HI,

I am trying to make my pic16F648a inot a an 8 bit LCD out.
From what I see in the basic default program ( in the manual) it is at 4 bit default.
I did switch the define to 8 bit.
But the ereg should now be on portA, but with one of the 4 ?
The default at 4 it is set to RB3, why 3 ?
the rest I believe remain unchage

‘ Set LCD Enable port
DEFINE LCD_EREG PORTB

thanks

ken

So far this is what I have:

‘ Set LCD Data port
DEFINE LCD_DREG PORTB

‘ Set starting Data bit (0 or 4) if 4-bit bus
DEFINE LCD_DBIT 0

‘ Set LCD Register Select port
DEFINE LCD_RSREG PORTB

‘ Set LCD Register Select bit
DEFINE LCD_RSBIT 4

‘ Set LCD Enable port
DEFINE LCD_EREG PORTA

‘ Set LCD Enable bit
DEFINE LCD_EBIT 3

‘ Set LCD bus size (4 or 8 bits)
DEFINE LCD_BITS 8

LcdOut $FE, 1, "Hello"