Rev. 1.00, 05/04, page 142 of 544
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
Initial
Value R/W Description
7 PG7DDR
0 W
6 PG6DDR
0 W
5 PG5DDR
0 W
4 PG4DDR
0 W
3 PG3DDR
0 W
2 PG2DDR
0 W
1 PG1DDR
0 W
0 PG0DDR
0 W
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.
Summary of Contents for H8S/2111B
Page 2: ...Rev 1 00 05 04 page ii of xxxiv...
Page 8: ...Rev 1 00 05 04 page viii of xxxiv...
Page 22: ...Rev 1 00 05 04 page xxii of xxxiv...
Page 30: ...Rev 1 00 05 04 page xxx of xxxiv...
Page 84: ...Rev 1 00 05 04 page 50 of 544...
Page 100: ...Rev 1 00 05 04 page 66 of 544...
Page 126: ...Rev 1 00 05 04 page 92 of 544...
Page 180: ...Rev 1 00 05 04 page 146 of 544...
Page 216: ...Rev 1 00 05 04 page 182 of 544...
Page 254: ...Rev 1 00 05 04 page 220 of 544...
Page 268: ...Rev 1 00 05 04 page 234 of 544...
Page 382: ...Rev 1 00 05 04 page 348 of 544...
Page 462: ...Rev 1 00 05 04 page 428 of 544...
Page 464: ...Rev 1 00 05 04 page 430 of 544...
Page 488: ...Rev 1 00 05 04 page 454 of 544...
Page 496: ...Rev 1 00 05 04 page 462 of 544...
Page 574: ...Rev 1 00 05 04 page 540 of 544...
Page 581: ......
Page 582: ...H8S 2111B Hardware Manual...