hi,
I am new to PBP, I have made small test board for testing my codes using pic16f72 and I have written following code to test 2x16 lcd but it doesnt seem to be working. All I see is black squares.
My test board with 16f628+lcd with default LCD wiring is working fine and I have tested my few codes On it.
COULD SOMEBODY PLS POINT OUT WHAT IS THAT I AM MISSING ?
************************************************** ******
'PIC16F72
DEFINE OSC 10 ' Set the Xtal frequency
TRISB=%00000011
TRISA=%00000000
' ** Declare LCDOUT Defines **
DEFINE LCD_DREG PORTB 'LCD data port
DEFINE LCD_DBIT 4 'LCD data starting bit 0 or 4
DEFINE LCD_RSREG PORTB 'LCD register select port
DEFINE LCD_RSBIT 2 'LCD register select bit
DEFINE LCD_EREG PORTB 'LCD enable port
DEFINE LCD_EBIT 3 'LCD enable bit
DEFINE LCD_BITS 4 'LCD bus size 4 or 8
DEFINE LCD_LINES 2 'Number lines on LCD
PAUSE 2000
MAIN:
LCDOUT $FE, 1 'LCD CLR
LCDOUT $FE, $80, " LINE 1 "
LCDOUT $FE, $C0, " LINE 2 "
PAUSE 100
GOTO MAIN
************************************************** ************
Thanks in advance
vu2iia
Bookmarks