Datasheet
Section 8 I/O Ports
Rev.7.00 Feb. 14, 2007 page 298 of 1108
REJ09B0089-0700
8.12.3 Pin Functions
Port G pins also function as bus control signal output pins (CS0 to CS3, CS6, CS7) the A/D
converter input pin (ADTRG), and interrupt input pins (IRQ6, IRQ7). The pin functions are
different in mode 7
*
1
, and modes 4 to 6
*
1
. Port G pin functions are shown in table 8.22.
Table 8.22 Port G Pin Functions
Pin Selection Method and Pin Functions
PG4/CS0 The pin function is switched as shown below according to the operating mode
and bit PG4DDR.
Operating
Mode
Modes 4 to 6
*
1
Mode 7
*
1
PG4DDR 0 1 0 1
Pin function PG4 input pin CS0 output pin PG4 input pin PG4 output pin
PG3/CS1/CS7 The pin function is switched as shown below according to the operating mode
and CSS17 bit in PFCR1, CS167E bit in PFCR2, and bit PG3DDR.
Operating
Mode
Modes 4 to 6
*
1
Mode 7
*
1
PG3DDR 0 1 0 1
CS167E — 0 1 — —
CSS17 — — 0 1 — —
Pin function PG3
input
pin
PG3
output
pin
CS1
output
pin
CS7
output
pin
PG3
input
pin
PG3
output
pin
PG2/CS2 The pin function is switched as shown below according to the operating mode
and CS25E bit in PFCR2, and bit PG2DDR.
Operating
Mode
Modes 4 to 6
*
1
Mode 7
*
1
PG2DDR 0 1 0 1
CS25E — 0 1 — —
Pin function PG2 input
pin
PG2 output
pin
CS2 output
pin
PG2 input
pin
PG2 output
pin










