English
Language : 

MC68HC08GZ32 Datasheet, PDF (163/320 Pages) Freescale Semiconductor, Inc – Microcontrollers
Port G
Figure 13-22 shows the port F I/O logic.
When bit DDRFx is a 1, reading address $0440 reads the PTFx data latch. When bit DDRFx is a 0,
reading address $0440 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-7 summarizes the operation of the port F pins.
READ DDRF ($0444)
WRITE DDRF ($0444)
RESET
WRITE PTF ($0440)
DDRFx
PTFx
PTFx
READ PTD ($0440)
Figure 13-22. Port F I/O Circuit
Table 13-7. Port F Pin Functions
DDRF PTF
Bit
Bit
0
X(1)
0
X
1
X
I/O Pin
Mode
Input, VDD(2)
Input, Hi-Z(4)
Output
Accesses
to DDRF
Read/Write
DDRF7–DDRF0
DDRF7–DDRF0
DDRF7–DDRF0
1. X = Don’t care
2. I/O pin pulled up to VDD by internal pullup device.
3. Writing affects data register, but does not affect input.
4. Hi-Z = High imp[edance
Accesse
to PTF
Read
WritE
Pin
PTF7–PTF0(3)
Pin
PTF7–PTF0(3)
PTF7–PTF0
PTF7–PTF0
13.9 Port G
Port G is an 8-bit special-function port that shares all eight of its pins with the analog-to-digital converter
(ADC) module.
13.9.1 Port G Data Register
The port G data register (PTG) contains a data latch for each of the eight port pins.
MC68HC08GZ32 Data Sheet, Rev. 3
Freescale Semiconductor
163