Datasheet
Section 9 I/O Ports
Rev.6.00 Sep. 27, 2007 Page 386 of 1268
REJ09B0220-0600
9.6.3 Pin Functions
Port 5 pins also function as SCI I/O pins (TxD
2
, RxD
2
, and SCK
2
), the A/D converter input pin
(ADTRG), interrupt input pins (IRQ
4
to IRQ
7
), and bus control signal I/O pins (WAIT and
BREQO). 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/
IRQ7/WAIT/
BREQO
The pin function is switched as shown below according to the combination of
the operating mode, bits TRGS1 and TRGS0 in the A/D control register
(ADCR), and bits IRQPAS, WAITE, WAITPS, BREQOE, BREQOPS, and
P53DDR.
Operating mode Modes 4 to 6 Mode 7
[BREQOE ·
BREQOPS]
0 1 —
[WAITE ·
WAITPS]
0 1 0 1 —
P53DDR 0 1 0 1 — — 0 1
Pin function P5
3
input
pin
P5
3
output
pin
WAIT
input
pin
Setting
pro-
hibited
BREQO
output
pin
Setting
pro-
hibited
P5
3
input
pin
P5
3
output
pin
ADTRG input pin
*
1
IRQ
7
interrupt input pin
*
2
Notes: 1. ADTRG input when TRGS0 = TRGS1 = 1.
2. IRQ
7
input when IRQPAS = 1.
P5
2
/SCK
2
/IRQ
6
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 bits IRQPAS and
P52DDR.
CKE1 0 1
C/A 0 1 —
CKE0 0 1 — —
P52DDR 0 1 — — —
Pin function P5
2
input pin
P5
2
output pin
SCK
2
output pin
SCK
2
output pin
SCK
2
input pin
IRQ
6
interrupt input pin
*
Note: * IRQ
6
input when IRQPAS = 1.