
TC9325F
2002-05-14
94
○
Output Ports (Also Function as LCD Driver Pins)
The output port includes 30 CMOS output ports, which also function as the LCD driver. The LCD OFF
bit is used to switch the port to an output port. Setting the LCD OFF bit to 1 sets the port to an output port.
The data output to the output port can be accessed by the OUT2 instruction with the operand [CN
=
CH].
These data can be divided/indirectly specified and set using the data selection port (
φ
L2B). First set the
data for the segment data port you wish to set, then access the corresponding data port.
The data selection port is incremented by 1 every time a general-purpose output data port (
φ
L2C) is
accessed. Accordingly, after setting the data selection port, the data can be repeatedly set.
In OT1 to OT20, output data can be incremented by 1 in one instruction by using the OT count UP bit.
Therefore, OT1 to OT20 can be used for the address signal output when using external memory.
Note: The data selection port is automatically incremented by 1 whenever
φ
L2C,
φ
L2D,
φ
L2E,
φ
L2F,
φ
L3B, or
φ
K3B on the I/O map are accessed.
Note: Setting the OT count UP bit to 0 sets no count up.
Note: See the LCD driver section.
Y1
Y4
Y8
DAL
1
7 OT29 OT30
*
*
Y2
Y4
Y8
DAL
OT2Y2
1
6 OT25 OT26 OT27 OT28
Y2
Y4
Y8
DAL
1
5
O21
φ
L2C
Y1
Y4
Y8
4 OT1Y1
φ
L2B
Y1
Y2
Y4
Y8
SEL1 SEL2 SEL4 SEL8
Data selection
Setting the LCD OFF bit to 1 sets the
segment output data to output port data.
Y2
Y4
Y8
DAL
OT1Y2
1
3 OT1L/K3B
φ
L3A
Y1
Y2
Y4
Y8
OT
count
up
OT1 to OT20 are counted up (incremented by 1)
whenever this bit is set to 1.
The OT1 bit is the lowest bit and OT20 the highest. The
countup starts from OT1.
φ
L/Output port data
Y1
Y2
Y4
Y8
DAL
OT6
1
2
OT9
Y2
Y4
Y8
DAL
OT2
1
1
OT5
OT7
OT8
φ
L2C
Y1
Y2
Y4
Y8
0
OT1
OT3
OT4