Having a problem with the LCDOUT Command on a PIC18F46K22 at 16MHz with a Vishay 4x20 LCD Display.
If I use LCDOUT this way:
Code:
LINE1 = $80
LCDOUT $FE, LINE1, "01234567890123456789"
It will work every time flawlessly.
But if I use:
Code:
LINE1 = $80
X1 = 10
X2 = 11
X3 = 12
X4 = 13
X5 = 14
LCDOUT $FE, LINE1, #X1, " ", #X2, " ", #X3, " ", #X4, " ", #X5
The display will show
10 11 12 garbage.....
If I do this:
Code:
LINE1 = $80
X1 = 10
X2 = 11
X3 = 12
X4 = 13
X5 = 14
LCDOUT $FE, LINE1, #X1, " ", #X2, " ", #X3, " "
LINE1 = LINE1 + 9
GOSUB DELAY30 '30 msec delay
LCDOUT $FE, LINE1, #X4, " ", #X5
then everything is correct
10 12 13 14 15
I tried changing these parameters to no avail
DEFINE LCD_COMMANDUS 1500 ; Set command delay time in us
DEFINE LCD_DATAUS 44 ; Set data delay time in us
Any suggestions?
Bookmarks