I can't seem to get my LCD display to work with my 16F88. I get the solid blocks across the first line, and that's it (basically the same as applying power to the LCD). I've double-checked all the connections, so I think it's something in my program. Here's what I have (based on the lcd.bas file included with pbp):
Code:
define osc 8
ADCON0 = %11000001
Define LCD_DREG PORTB
Define LCD_DBIT 4
Define LCD_RSREG PORTB
Define LCD_RSBIT 5
Define LCD_EREG PORTB
Define LCD_EBIT 6
Pause 500 ' Wait for LCD to startup
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
The EPICWin programmer is set for INTRC (IN), so I think I'm correctly using the internal 8 MHz clock.
I'm really not sure if I'm using ADCON0 properly. There always seems to be mention of ADCON1 and setting ports to analog/digital, but I can't seem to sort it out.
Any help would be greatly appreciated.
Thanks,
Jeff
Bookmarks