74 / 129 page

Port Definitions
PRELIMINARY V1.8
69
TABLE 41.
Definition of ZCR
14.5.
PAD Cell
Figure 24.
Pad Cell
14.6.
P0 (Port-0)
Then the Pin-0.0 to 0.7 has two functional modes, A/D Mode (Low Address/Data
Mode) and Port Mode (Bi-directional Port Mode). Initial Status is A/D Mode because
PCR0 (Port Control Register Bit-0) is 0 (low). In Port Mode, the direction of Port-0 can
be decided bit-by-bit. In A/D Mode, writing to Port-0 is prohibited. The read policy in
Port Mode follows that described before. Read-Modify-Write instructions read the port
latch than the pin.
To use Pin-0.0 to 0.7 as a normal input port, PCR0 should be high. If PCR0 is high, the
direction of each Port-0 pin is decided by each P0IO bit. If the P0IO bit-x is high, Port-
0.x is output mode. If low, Port-0.x is input mode. Initial status is input mode because
P0IO (Port-0 I/O Direction Register) is reset to 00000000B. In input mode, pull-up
resistor can be connected by P0RD (Port-0 Resistor Disable Register). If the P0RD bit-x
Read/Write
by Software
R
R
R
R/W
R/W
R/W
R/W
R/W
Write
by Hardware
NDISP
PADOUT
DISN
PAD
RDIS
AIN
PADIN
PIEN