Datasheet

Section 8 I/O Ports
Rev. 3.00 Mar 21, 2006 page 228 of 788
REJ09B0300-0300
8.16.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.
8.16.2 Port G Output Data Register (PGODR)
PGODR stores output data for the pins on port G.
Bit Bit Name Initial Value R/W Description
7 PG7ODR 0 R/W
6 PG6ODR 0 R/W
5 PG5ODR 0 R/W
4 PG4ODR 0 R/W
3 PG3ODR 0 R/W
2 PG2ODR 0 R/W
1 PG1ODR 0 R/W
0 PG0ODR 0 R/W
PGODR can always be read or written to,
regardless of the contents of PGDDR.