English
Language : 

MC68HC08AZ60A Datasheet, PDF (336/480 Pages) Motorola, Inc – Microcontrollers
I/O Ports
Figure 20-18 shows the port F I/O logic.
READ DDRF ($000D)
WRITE DDRF ($000D)
RESET
WRITE PTF ($0009)
READ PTF ($0009)
DDRFx
PTFx
PTFx
Figure 20-18. Port F I/O Circuit
When bit DDRFx is a logic one, reading address $0009 reads the PTFx
data latch. When bit DDRFx is a logic zero, reading address $0009 reads
the voltage level on the pin. The data latch can always be written,
regardless of the state of its data direction bit. Table 20-7 summarizes
the operation of the port F pins.
Table 20-7. Port F Pin Functions
DDRF Bit
PTF Bit
I/O Pin Mode
Accesses to
DDRF
Read/Write
0
X(1)
Input, Hi-Z(2) DDRF[6:0]
1
X
Output
DDRF[6:0]
1. X = don’t care
2. Hi-Z = high impedance
3. Writing affects data register, but does not affect input.
Accesses to PTF
Read
Pin
PTF[6:0]
Write
PTF[6:0](3)
PTF[6:0]
Advance Information
336
I/O Ports
MC68HC08AZ60A — Rev 0.0
MOTOROLA