Datasheet
Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 186 of 788
REJ09B0300-0300
• P40/TMCI0/TxD2/IrTxD
The pin function is switched as shown below according to the combination of the TE bit in
SCR of SCI_2 and the P40DDR bit.
TE 0 1
P40DDR 0 1 —
P40
input pin
P40
output pin
TxD2/IrTxD
output pin
Pin Function
TMCI0 input pin
*
Note: * When an external clock is selected with bits CKS2 to CKS0 in TCR0 of TMR_0, this pin
is used as the TMCI0 input pin.
8.6 Port 5
Port 5 is a 3-bit I/O port. Port 5 pins also function as SCI_0 I/O pins, and the IIC_0 I/O pin. P52
and SCK0 are NMOS push-pull outputs, and SCL0 is an NMOS open-drain output. Port 5 has the
following registers.
• Port 5 data direction register (P5DDR)
• Port 5 data register (P5DR)
8.6.1 Port 5 Data Direction Register (P5DDR)
P5DDR specifies input or output for the pins of port 5 on a bit-by-bit basis.
Bit Bit Name Initial Value R/W Description
7
to
3
— All 1 — Reserved
The initial value must not be changed.
2 P52DDR 0 W
1 P51DDR 0 W
0 P50DDR 0 W
The corresponding port 5 pins are output ports
when P5DDR bits are set to 1, and input ports
when cleared to 0. As SCI_0 is initialized in
software standby mode, the pin states are
determined by the IIC_0 ICCR, P5DDR, and
P5DR specifications.