Datasheet
Section 9 I/O Ports
Rev.6.00 Sep. 27, 2007 Page 439 of 1268
REJ09B0220-0600
9.14.3 Pin Functions
Port G pins also function as bus control signal output pins (CS
0
to CS
3
, and CAS
*
). The pin
functions are different in mode 7, and modes 4 to 6. Port G pin functions are shown in table 9.27.
Note: * The CAS is not supported in the H8S/2321.
Table 9.27 Port G Pin Functions
Pin Selection Method and Pin Functions
PG
4
/CS
0
The pin function is switched as shown below according to the operating mode
and bit PG4DDR.
Operating
Mode
Modes 4 to 6 Mode 7
PG4DDR 0 1 0 1
Pin function PG
4
input pin CS
0
output pin PG
4
input pin PG
4
output pin
PG
3
/CS
1
The pin function is switched as shown below according to the operating mode
and bits PG3DDR and CS167E.
Operating
Mode
Modes 4 to 6 Mode 7
PG3DDR 0 1 0 1
CS167E — 0 1 — —
Pin function PG
3
input
pin
PG
3
output
pin
CS
1
output
pin
PG
3
input
pin
PG
3
output
pin
PG
2
/CS
2
The pin function is switched as shown below according to the operating mode
and bits PG2DDR and CS25E.
Operating
Mode
Modes 4 to 6 Mode 7
PG2DDR 0 1 0 1
CS25E — 0 1 — —
Pin function PG
2
input
pin
PG
2
output
pin
CS
2
output
pin
PG
2
input
pin
PG
2
output
pin