English
Language : 

MC68HC11PH8 Datasheet, PDF (86/264 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcomputer Unit
4.7
Port G
Port G is an 8-bit bidirectional port, with both data and data direction registers. In addition to their
I/O capability, port G pins are shared with R/W, LCD, SCI2 (with MI-bus) and SPI2 functions, as
shown in the following table.
4
Pin
Alternate
function
PG0
RXD2
 See Section 5 for
PG1
TXD2
 more information.
PG2
MISO2

PG3
PG4
MOSI2
SCK2



See Section 7 for
more information.
PG5
SS2

PG6
LCDBP
 See Section 2 for
PG7
R/W
 more information.
Pins PG[6:0] are high-impedance inputs with software selectable pull-up resistors, as is PG7 in
single chip and bootstrap modes (see Section 4.9). In expanded or test modes, PG7 is the R/W
output.
4.7.1 PORTG — Port G data register
Port G data (PORTG)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$007E PG7 PG6 PG5 PG4 PG3 PG2 PG1 PG0 undeÞned
This is a read/write register and is not affected by reset. The bits may be read and written at any
time, but, when a pin is allocated to its alternate function, a write to the corresponding register bit
has no effect on the pin state.
4.7.2 DDRG — Data direction register for port G
Data direction G (DDRG)
Address bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
State
on reset
$007F DDG7 DDG6 DDG5 DDG4 DDG3 DDG2 DDG1 DDG0 0000 0000
DDG[7:0] — Data direction for port G
1 (set) – The corresponding pin is configured as an output.
0 (clear) – The corresponding pin is configured as an input.
MOTOROLA
4-8
PARALLEL INPUT/OUTPUT
TPG
MC68HC11PH8