8.12.2
Register Configuration
Table 8-21 shows the port G register configuration.
Table 8-21 Port G Registers
Name
Port G data direction register
Port G data register
Port G register
Port function control register 1
Port function control register 2
Notes: 1. Value of bits 4 to 0.
2. Lower 16 bits of the address.
3. Initial value depends on the mode.
Port G Data Direction Register (PGDDR)
Bit
:
7
—
Modes 4 and 5
Initial value : Undefined Undefined Undefined
R/W
:
—
Modes 6 and 7 *
Initial value : Undefined Undefined Undefined
R/W
:
—
PGDDR is an 8-bit write-only register, the individual bits of which specify input or output for the
pins of port G. PGDDR cannot be read, and bits 7 to 5 are reserved. If PGDDR is read, an
undefined value will be read.
The PGDDR is initialized by a reset and in hardware standby mode, to H'10 (bits 4 to 0) in modes
4 and 5, and to H'00 (bits 4 to 0) in modes 6 and 7 * . It retains its prior state after in software
standby mode. The OPE bit in SBYCR is used to select whether the bus control output pins retain
their output state or become high-impedance when a transition is made to software standby mode.
Note: * Modes 6 and 7 are not available in the ROMless versions.
Rev. 5.00, 12/03, page 288 of 1088
Abbreviation
PGDDR
PGDR
PORTG
PFCR1
PFCR2
6
5
—
—
PG4DDR PG3DDR PG2DDR PG1DDR PG0DDR
—
—
—
—
Initial Value *
R/W
H'10/H'00 *
W
R/W
H'00
R
Undefined
R/W
H'0F
R/W
H'30
4
3
1
0
W
W
0
0
W
W
1
Address *
3
H'FEBF
H'FF6F
H'FF5F
H'FF45
H'FFAC
2
1
0
0
W
W
0
0
W
W
2
0
0
W
0
W