Datasheet

Rev.6.00 Oct.28.2004 page 296 of 1016
REJ09B0138-0600H
9.6.3 Pin Functions
Port 5 pins also function as SCI I/O pins (TxD2, RxD2, and SCK2), and the A/D converter input pin (ADTRG). Port 5 pin
functions are shown in table 9-10.
Table 9-10 Port 5 Pin Functions
Pin Selection Method and Pin Functions
P5
3
/ADTRG The pin function is switched as shown below according to the combination of
bits TRGS1 and TRGS0 in the A/D converter ADCR, and bit P53DDR.
P53DDR 0 1
Pin function P5
3
input pin P5
3
output pin
ADTRG input pin*
Note: * ADTRG input when TRGS0 = TRGS1 = 1.
P5
2
/SCK2 The pin function is switched as shown below according to the combination of
bit C/A in the SCI2 SMR, bits CKE0 and CKE1 in SCR, and bit P52DDR.
CKE1 0 1
C/A 01
CKE0 0 1
P52DDR 0 1
Pin function P5
2
input pin
P5
2
output pin
SCK2
output pin
SCK2
output pin
SCK2
input pin
P5
1
/RxD2 The pin function is switched as shown below according to the combination of
bit RE in the SCI2 SCR, and bit P51DDR.
RE 0 1
P51DDR 0 1
Pin function P5
1
input pin P5
1
output pin RxD2 input pin
P5
0
/TxD2 The pin function is switched as shown below according to the combination of
bit TE in the SCI2 SCR, and bit P50DDR.
TE 0 1
P50DDR 0 1
Pin function P5
0
input pin P5
0
output pin TxD2 output pin