Examples Of Lcd Driver Control Program - Epson E0C6001 Technical Manual

Cmos 4-bit single chip microcomputer
Table of Contents

Advertisement

Examples of
LCD driver control
program
Fig. 3.5.4
Data set in A register and
displayed patterns
• Displaying 7-segment
The LCD display routine using the assignment of Figure
3.5.3 can be programmed as follows.
Label
Mnemonic/operand
ORG
RETD
RETD
RETD
RETD
RETD
RETD
RETD
RETD
RETD
RETD
SEVENS: LD
LD
JPBA
When the above routine is called (by the CALL or CALZ
instruction) with any number from "0" to "9" set in the A
register for the assignment of Figure 3.5.4, seven segments
are displayed according to the contents of the A register.
A resister
Display
A resister
0
2
1
3
The RETD instruction can be used to write data to the
display memory only if it is addressed using the X register.
(Addressing using the Y register is invalid.)
Note that the stack pointer must be set to a proper value
before the CALL (CALZ) instruction is executed.
CHAPTER 3: PERIPHERAL CIRCUITS (LCD Driver)
Comment
000H
3FH
;
0 is displayed
06H
;
1 is displayed
5BH
;
2 is displayed
4FH
;
3 is displayed
66H
;
4 is displayed
6DH
;
5 is displayed
7DH
;
6 is displayed
27H
;
7 is displayed
7FH
;
8 is displayed
6FH
;
9 is displayed
B,0
;
Set the address of jump
X,090H
;
Set address of display memory
Display
A resister
Display
A resister
4
5
Display
A resister
Display
6
8
7
9
II-31

Advertisement

Table of Contents
loading

Table of Contents