Ok, I made the changes and I'm still having the same problem.
I attached the schematic and the code is listed below:
[CODE]
DEFINE LCD_DREG PORTC 'Set port C for the data lines
DEFINE LCD_DBIT 4
DEFINE LCD_RSREG PORTB 'Set the RS Port and Pin
DEFINE LCD_RSBIT 5
DEFINE LCD_EREG PORTB 'Set LCD Enable bit and pin
DEFINE LCD_EBIT 6
DEFINE LCD_BITS 4
' Set number of lines on LCD
DEFINE LCD_LINES 2
' Set command delay time in us
DEFINE LCD_COMMANDUS 2000
' Set data delay time in us
DEFINE LCD_DATAUS 50
ANSEL = 0
ANSELH = 0
CM1CON0 = 0
CM2CON0 = 0
Cnt VAR WORD
'Start Program
poke TRISC,0
poke TRISB,0
Pause 500
cnt=0
RPT:
HIGH PORTB.6
LCDOUT $FE,1 'CLEAR LCD SCREEN
LCDOUT "CNT=", DEC CNT
Pause 1000
CNT=CNT+1
GOTO RPT
END
[CODE/]
Bookmarks