
TC9325F
2002-05-14
53
○
LCD Driver
The LCD driver consists of 38 pins: 30 pins (OT1/COM1 to OT30/S26) that also function as output ports
and eight pins (P9-0/S27 to P10-3/S34) that also operate as I/O ports.
The LCD driver has 1/4, 1/3, and 1/2 duty and 1/3 and 1/2 bias drive and can be selected between two
frame frequencies.
When 1/4 duty is set, up to 136 segments can be displayed using a matrix of COM1 to 4 and S1 to 34. At
1/3 duty, a maximum of 105 segments can be displayed by a matrix of COM1 to 3 and S1 to 35. At 1/2 duty,
up to 72 segments can be displayed by a matrix of COM1, 2 and S1 to 36.
After a system reset, the pins that also function as output ports are set to output ports, and the pins that
are also I/O ports are set to I/O port inputs. The LCD OFF bit is used to switch the output ports and LCD
driver, switching 30 ports at a time. The I/O ports and segment outputs are switched individually.
1. LCD Driver Ports
The LCD driver control ports consist of a selection port, segment I/O selection ports, segment data ports,
and an LCD driver control port. These ports are accessed by the OUT2 instruction with the operand [CN
=
CH~FH].
Pins S27 to S34 can also operate as an I/O port under the control of the segment I/O selection ports
(
φ
L2CE,
φ
L2CF). Setting the port to 1 sets segment output, and setting the port to 0 sets the pins as an I/O
port. (See the section on I/O ports.)
Set the LCD driver segment data using the segment data ports (
φ
L2D,
φ
L2E,
φ
L2F). Setting the segment
data port to 0 turns the LCD display off; setting 1 turns the LCD display on. The LCD drive mode is
selected by the LCD driver control port (
φ
L2FE), while the LCD driver control port 2 (
φ
L2FF) is used to
switch between the LCD driver and output port (LCD OFF bit) and to turn the LCD display completely off
(DISP OFF bit).
The DISP OFF bit can turn the whole LCD display off without setting segment data. Setting this bit to 1
outputs the turned off waveforms to all the segments. Setting DISP OFF to 0 outputs the set segment data.
The segment data settings are independent of the DISP OFF bit settings.
The LCD OFF bit switches the LCD driver on/off. Setting this bit to 1 turns the LCD driver off and sets
OT1/COM1 to OT30/S26 pins as output ports (OT1 to OT30). Setting the LCD OFF bit to 0 activates the
LCD driver and sets the OT1/COM1 to OT30/S26 pins to LCD driver outputs (COM1 to S26). The segment
data settings are independent of the LCD OFF bit settings.
These data can be divided/indirectly specified, and set using the data selection port (
φ
L2B). This port is
incremented by 1 at each access of segment data port
φ
L2C, segment data ports L2D to
φ
L2F, and the
LCD driver control port. Accordingly, these data can be repeatedly set after the data selection port is set.