Datasheet

Section 10 I/O Ports
Rev. 6.00 Mar. 18, 2010 Page 355 of 982
REJ09B0054-0600
10.12.2 Port G Data Register (PGDR)
PGDR stores output data for port G pins.
Bit
Bit Name
Initial
Value
R/W
Description
7 to
5
Undefined Reserved
These bits are always read as undefined value.
4 PG4DR 0 R/W
3 PG3DR 0 R/W
2 PG2DR 0 R/W
1 PG1DR 0 R/W
Output data for a pin is stored when the pin is
specified as a general purpose output port.
0 PG0DR 0 R/W
10.12.3 Port G Register (PORTG)
PORTG shows port G pin states. This register cannot be modified.
Bit
Bit Name
Initial
Value
R/W
Description
7 to
5
Undefined Reserved
These bits are always read as undefined value.
4 PG4
*
R
3 PG3
*
R
2 PG2
*
R
1 PG1
*
R
If a port G read is performed while PGDDR bits are
set to 1, the PGDR values are read. If a port G read is
performed while PGDDR bits are cleared to 0, the pin
states are read.
0 PG0
*
R
Note: * Determined by the states of pins PG4 to PG0.
10.12.4 Pin Functions
Port G pins also function as IEB* input/output pin, bus control signal input/output pin, and
interrupt input pin. The values of registers and pin functions are shown below.
Note: * Supported only by the H8S/2258 Group.