Specifications

Table Of Contents
S1C62740 TECHNICAL SOFTWARE EPSON II-35
CHAPTER 6: PERIPHERAL CIRCUITS (LCD Driver)
Bit-unit operation of the display memory
Address
D3 D2 D1 D0
90H
Data
: SEG-A
: SEG-B
Fig. 6.6.4
Example of segment assignment
Label Mnemonic/operand Comment
;*
;* LCD DRIVER
;*
;* BIT UNIT OPERATION
;
SEGBUF EQU 00H ;DISPLAY MEMORY BUFFER
;
LD X,SEGBUF ;SET ADDRESS DISPLAY MEMORY BUFFER
LD Y,90H ;SET ADDRESS DISPLAY MEMORY
LD MX,3 ;SET BUFFER DATA
LD MY,MX ;SET SEGMENT A, B ON (, )
AND MX,1110B ;CHANGE BUFFER DATA
LD MY,MX ;SET SEGMENT A OFF (, )
AND MX,1101B ;CHANGE BUFFER DATA
LD MY,MX ;SET SEGMENT B OFF (, )
;
For manipulation of the display memory in bit-units for the assign-
ment of Figure 6.6.4, a buffer must be provided in RAM to hold
data. Note that, since the display memory is write-only, data
cannot be changed directly using an ALU instruction (for example,
AND or OR).
After manipulating the data in the buffer, write it into the corre-
sponding display memory using the transfer command.
Programming notes
(1) The contents of the display memory are undefined until the area
is initialized (through, for instance, memory clear processing by
the CPU). Initialize the display memory by executing initial
processing.
(2) Since the display memory area is write-only, display data
cannot be rewritten by arithmetic operations (such as AND, OR,
ADD, SUB).