English
Language : 

GDM240128A Datasheet, PDF (22/29 Pages) List of Unclassifed Manufacturers – LCD MODULE
WRHZG2:
User’s Manual
MOV A, R2
MOV R3, A
; R3=R2
MOV R2, #1CH
; number of cycles
MOV R4, #0C1H
LCALL WR2
; change the address pointer
DJNZ R2, WRHZG2
MOV A, R3
MOV R2, A
; recover R2
POP ACC
; pop code of stack
INC A
; code+1
DJNZ R2, WRHZG1
RET
5-8-5. Application of Text Attribute Mode
Display the character string “WELCOME!” on the top left corner of the screen:
“WELCOME”, blink of reverse display; “!”, normal display. The subprogram
is TCR,in which TAB2 acts as character code and TAB3 as corresponding
text attribute code.
TCR: MOV R4, #9CH
;start the text and graphic mode
LCALL WR2
MOV R4, #84H
; text attribute mode set
LCALL WR2
MOV R2, #00H
MOV R3, #00H
MOV R4, #24H
; address pointer set
LCALL WR
MOV R2, #00H
; number of characters
TCR1: MOV DPTR, #TAB2 ; table of characters
MOV A, R2
MOVC A, @A+DPTR
MOV R3, A
MOV R4, #0C0H
LCALL WR1
INC R2
CJNE R2, #08H, TCR1
MOV R2, #00H
MOV R3, #08H
MOV R4, #24H
; address pointer set
LCALL WR
MOV R2, #00H
; number of characters
TCR2: MOV DPTR, #TAB3
; table of characters
MOV A, R2
- 21 -