English
Language : 

GDM240128A Datasheet, PDF (17/29 Pages) List of Unclassifed Manufacturers – LCD MODULE
User’s Manual
Relevant subprograms could be derived from above-mentioned program:
a. Subprogram of STA0 and STA1 status check, Before the command write
and data write and read,STA0 and STA1 should both be defined to be “1”:
BF1: LCALL BF
JNB ACC.0, BF1
; STA0 status check
JNB ACC.1, BF1
; STA1 status check
RET
b. Subprogram of STA2 status check, STA2 should be checked between
reading of each datum. STA2=1 should be confirmed before each reading
during the continuous reading.
BF2: LCALL BF
JNB ACC.2, BF2
;STA2 status check
RET
Similarly, subprogram of STA3 status check is listed as follows:
BF3: LCALL BF
JNB ACC.3, BF3
; STA3 status check
RET
c. After the screen peek and screen copy commands, the STA6 status should
be checked. STA6=0 indicates that the commands are correctly performed.
For example:
BF6: LCALL BF
JB ACC.6, ERR
; STA6 status check
RET
ERR: ······
; error disposal program
(2)subprogram of writing command and data
register to be used: R0, R2, R3, R4, A:
input register: R2 is the first parameter, R3 is the second parameter,R4 is the
command code
WR: LCALL BF1
: entrance of double parameter command
MOV A, R2
LCALL WR4
WR1: LCALL BF1
; entrance of single parameter command
MOV A, R3
LCALL WR4
WR2: LCALL BF1
; entrance of no parameter command
- 16 -