Can't get GLCD to work!

theschoolmaster

New member
Hi. I am having great difficulty getting the Graphic LCD GLIC-K1 to work.
I have written some basic test code, and to keep matters simple am using delays instead of using the Status signal.
I have confirmed that the GLICD is connected correctly:
+5v, 0V, SIN to PICAXE output B.7
I have an LED on the PRX signal (B.7) which confirms data is being transmitted. But the LCD refuses to do anything! What am I doing wrong?
All/any help very gratefully appreciated!
CODE:
-----
symbol prx=7
okay:
gosub initLCD
pause 1000
gosub prepLCD
pause 1000
gosub xclearLCD
pause 1000
goto okay
;.............................................................
initLCD:
gosub xclearLCD 'clear the screen
serout prx,T2400,(20,1) 'Switch backlight ON
pause 500
return
prepLCD:
gosub showLYNCH ;Display LYNCH graphic briefly
pause 500
return
showLYNCH:
serout prx,T2400,(100,4,3,0,"LYNCH logo here")
pause 2000
return
xclearLCD:
serout prx,T2400,(10) ; Clear LCD
pause 500
return
 

piclt

Member
Did you try drawing a basic line from example in datasheet...?????
Serout pin , T2400 , (155, 1 , 20 , 25 , 70,25)

you might need
output 7
at top of prog...?
 
Last edited:

Technical

Technical Support
Staff member
If not seeing anything at all make sure you have the negative inverter correctly configured (i.e. jumper is on GLCD side) and have adjusted the blue contrast pot as required.

You also need a delay as very first line in your code (see datasheet)

Code:
2. To make sure GLIC / GLCD initialises properly, always start with a Clear Screen. 

' GLIC Startup pause and clear on PICAXE 18X
Pause 1500 ' Allow GLCD to settle after power-up
Serout 7,T2400, (ClearLCD) :
Pause 200 ‘ Issue Clear Screen and a pause
 
Top