
W741E260
- 28 -
When Fw = 32.768 KHz, the LCD frequency is as shown in the table below.
LCD Frequency
Fw/512 (64 Hz)
Fw/256 (128 Hz)
Fw/128 (256 Hz)
Fw/64 (512 Hz)
Corresponding to the 32 LCD drive output pins, there are 32 LCD data RAM segments (LCDR00 to
LCDR1F). Instructions such as MOV LCDR, #I; MOV WR, LCDR; MOV LCDR, WR; and MOV LCDR,
ACC are used to control the LCD data RAM. The data in the LCD data RAM are transferred to the
segment output pins automatically without program control. When the bit value of the LCD data RAM is
"1," the LCD is turned on. When the bit value of the LCD data RAM is "0," LCD is turned off. The
contents of the LCD data RAM (LCDR) are sent out through the segment0 to segment31 pins by a
direct memory access. The relation between the LCD data RAM and segment/common pins is shown
below.
COM3
LCD Data RAM
Output Pin
bit 3
LCDR00
SEG0
LCDR01
SEG1
.
.
.
.
.
.
LCDR1E
SEG30
LCDR1F
SEG31
The LCDON instruction turns the LCD display on (even in HOLD mode), and the LCDOFF instruction
turns the LCD display off. At initial reset, all the LCD segments are lit. When the initial reset state ends,
the LCD display is turned off automatically. To turn on the LCD display, the instruction LCDON must be
executed. When the drive output pins are used as DC output ports (setting by option codes, please
refer the user's manual of ASM741S assembler for more detail), CMOS output type or NMOS output
type can be selected by executing the instruction MOV LCDM, #I. The relationship between the LCD
data RAM and segment/common pins is shown below. The data in LCDR00 are transferred to the
corresponding segment output port (SEG3 to SEG0) by a direct memory access. The other LCD data
RAM segments can be used as normal data RAM to store data.
LCD Data RAM
Output Pin
Bit 3
LCDR00
SEG3-SEG0
SEG3
LCDR03-LCDR01
-
LCDR04
SEG7-SEG4
SEG7
LCDR07-LCDR05
-
.
.
.
.
.
.
LCDR1C
SEG31-SEG30
SEG31
LCDR1F-LCDR1D
-
Static
64
128
256
512
1/2 Duty
32
64
128
256
1/3 Duty
21
43
85
171
1/4 Duty
16
32
64
128
COM2
bit 2
0/1
0/1
.
.
.
0/1
0/1
COM1
bit 1
0/1
0/1
.
.
.
0/1
0/1
COM0
bit 0
0/1
0/1
.
.
.
0/1
0/1
0/1
0/1
.
.
.
0/1
0/1
Bit 2
SEG2
-
SEG6
-
.
.
.
SEG30
-
Bit 1
SEG1
-
SEG5
-
.
.
.
SEG29
-
Bit 0
SEG0
-
SEG4
-
.
.
.
SEG28
-
-
-
.
.
.
-