English
Language : 

MC68HC08GZ32 Datasheet, PDF (165/320 Pages) Freescale Semiconductor, Inc – Microcontrollers
Port G
When bit DDRGx is a 1, reading address $0441 reads the PTGx data latch. When bit DDRGx is a 0,
reading address $0441 reads the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit. Table 13-8 summarizes the operation of the port G pins.
READ DDRG ($0445)
WRITE DDRG ($0445)
RESET
WRITE PTG ($0441)
DDRGx
PTGx
PTGx
READ PTG ($0441)
Figure 13-25. Port G I/O Circuit
Table 13-8. Port G Pin Functions
DDRG
Bit
0
1
PTG
Bit
X(1)
X
I/O Pin
Mode
Input, Hi-Z(2)
Output
Accesses
to DDRG
Read/Write
DDRG7–DDRG0
DDRG7–DDRG0
Accesses
to PTG
Read
Write
Pin
PTG7–PTG0(3)
PTG7–PTG0
PTG7–PTG0
1. X = Don’t care
2. Hi-Z = High impedance
3. Writing affects data register, but does not affect input.
MC68HC08GZ32 Data Sheet, Rev. 3
Freescale Semiconductor
165