PDA

View Full Version : LCD orders



jonas2
- 19th July 2009, 11:34
Hello


I try to understand the routine that runs a serial lcd.
Thank you


SEROUT2 PORTA.2,32,[$A3,$0C]
PAUSE 5
SEROUT2 PORTA.2,32,[$A3,$0C]
PAUSE 5
SEROUT2 PORTA.02,32,[$A3,$01]
PAUSE 10
SEROUT2 PORTA.2,32,[$A2," hello",$00]



SEROUT2 PORTA.2,32,[$A3,$0E]
PAUSE 5
SEROUT2 PORTA.2,32,[$A3,$01]
PAUSE 10
SEROUT2 PORTA.2,32,[$A2," reade",$00]
PAUSE 5
SEROUT2 PORTA.2,32,[$A1,$06,$01]
PAUSE 5

mackrackit
- 20th July 2009, 10:20
The "32" sets the baud rate at 19200, output DRIVEN, TRUE, and parity "NONE".
[$A3,$0C] Are commands.
$A3 = 163 Maybe move the cursor over, seems large though. How big is the display?
$0C = 12 Should be cursor OFF.

Do you have the data sheet for the display?

jonas2
- 21st July 2009, 09:19
http://www.lextronic.fr/P51-afficheur-2-x-16-caracteres-non-retro-eclaire.html

Hello


I find it is in french and on page 7

mackrackit
- 21st July 2009, 09:33
Yep, what I can make out those are special commands, but ...

Maybe Alan will see this and be able to help you...