Port G; Port G Data Direction Register - Renesas H8S/2111B Hardware Manual

Bit single-chip microcomputer h8s family / h8s/2100 series
Table of Contents

Advertisement

7.14

Port G

Port G is an 8-bit I/O port. Port G pins also function as IIC_0 and IIC_1 I/O pins. The output type
of port G is NMOS push-pull output. The output type of ExSCLB*, ExSDAB*, ExSCLA*, and
ExSDAA* is NMOS open-drain output and the pins can directly drive the bus. Port G has the
following registers. For details of PGCTL, see section 13.3.9, Port G Control Register (PGCTL).
• Port G data direction register (PGDDR)
• Port G output data register (PGODR)
• Port G input data register (PGPIN)
• Port G Nch-OD control register (PGNOCR)
• Port G control register (PGCTL)*
Note: *
The program development tool (emulator) does not support this function.
7.14.1
Port G Data Direction Register (PGDDR)
PGDDR selects input or output for the pins of port G on a bit-by-bit basis.
Bit
Bit Name
7
PG7DDR
6
PG6DDR
5
PG5DDR
4
PG4DDR
3
PG3DDR
2
PG2DDR
1
PG1DDR
0
PG0DDR
Rev. 1.00, 05/04, page 142 of 544
Initial
Value
R/W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
0
W
Description
0: Port G pin is an input pin
1: Port G pin is an output pin
PGDDR has the same address as PGPIN, and if read,
the port G pin states will be returned.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hd64f2111b

Table of Contents