Hi
I am new to PIC's and Picbasic and am trying to get an 8x2 LCD working in 4 bit mode. I am using the following code and it works with a 16x2. The controllers are the same and the starting address of each line are the same. Is there something else I need to do or just start check the wiring again. All that shows are 8 blocks on the first line. I am not reading a pot at this time just trying to get it to display, pot= . I forget where the code came from so sorry to who ever wrote it for not getting your name in here.


' For PIC16F88 and melabs PICBASIC PRO Compiler
'
' Read pot and display on LCD

' Define LCD pins
Define LCD_DREG PORTA
Define LCD_DBIT 4
Define LCD_RSREG PORTB
Define LCD_RSBIT 6
Define LCD_EREG PORTB
Define LCD_EBIT 3

' Allocate variables
x Var Byte


ANSEL = %00010000 ' Make the pot analog and rest digital
CMCON = 7 ' Set PORTA to digital

Pause 100 ' Wait for LCD to start


mainloop: Adcin 4, x ' Read the pot

Lcdout $fe, 1, "pot=", #x ' Send value to LCD

Pause 100 ' Do it about 10 times a second

Goto mainloop ' Do it forever

End




Thanks
Ron