23 lCD DRiVeR (lCD)
S1C17624/604/622/602/621 TeChniCal Manual
Seiko epson Corporation
23-9
Display Memory
23.5
The S1C17624/622 includes a 56-byte display memory (address 0x53c0 to address 0x53f7). The S1C17604/602/621
includes a 40-byte display memory (address 0x53c0 to address 0x53e7). The correspondence between memory bits
and COM/SEG pins varies depending on the conditions selected, as follows.
(1) Drive duty (1/8, 1/4, 1/3, 1/2 duty or static drive)
(2) SEG pin assignment (normal or inverted)
(3) COM pin assignment (normal or inverted)
Figures 23.5.1 to 23.5.10 show the correspondence between display memory and COM/SEG pins for each drive
duty.
Writing 1 to a display memory bit corresponding to pixels on the LCD panel turns that pixel on, while writing 0
turns the pixel off. Since the display memory is a RAM allowing reading and writing, bits can be controlled indi-
vidually using logic operation instructions (read-modify-write instructions).
Bits not assigned to the display area within the display memory can be used as general-purpose RAM that can be
read and written to.
Display area selection (when 1/4, 1/3, 1/2 duty or static drive is selected)
When 1/4, 1/3, 1/2 duty or static drive is selected, two screen areas can be reserved within the display memory,
and DSPAR/LCD_DCTL register can be used to switch between the screens. Setting DSPAR to 0 selects dis-
play area 0; setting to 1 selects display area 1.
SeG pin assignment
The display memory address assignment for the SEG pins can be inverted using SEGREV/LCD_DCTL regis-
ter. When SEGREV is set to 1 (default), memory addresses are assigned to SEG pins in ascending order. When
SEGREV is set to 0, memory addresses are assigned to SEG pins in descending order. (See Figures 23.5.1 to
23.5.10.)
COM pin assignment
The display memory bit assignment for the COM pins can be inverted using COMREV/LCD_DCTL register.
When COMREV is set to 1 (default), memory bits are assigned to COM pins in ascending order. When COM-
REV is set to 0, memory bits are assigned to COM pins in descending order. (See Figures 23.5.1 to 23.5.10.)
Bit
Address
COMREV = 1 COMREV = 0
0x
53
c0
...
0x
53
f3
0x
53
f4 ...
0x
53
f7
0x
53
f8
...
0x
53
ff
D0
Display area
Unused
area
(general-
purpose
memory)
Unavailable
area
COM0
COM7
D1
COM1
COM6
D2
COM2
COM5
D3
COM3
COM4
D4
COM4
COM3
D5
COM5
COM2
D6
COM6
COM1
D7
COM7
COM0
SEGREV = 1
S
E
G
0
...
S
E
G
51
SEGREV = 0
S
E
G
51
...
S
E
G
0
5.1 S1C17624/622 Display Memory Map (1/8 duty)
Figure 23.