English
Language : 

MC68HC08AS32A Datasheet, PDF (164/296 Pages) Motorola, Inc – Microcontrollers
Freescale Semiconductor, Inc.
Input/Output (I/O) Ports
READ DDRD ($0007)
WRITE DDRD ($0007)
RESET
WRITE PTD ($0003)
DDRDx
PTDx
PTDx
READ PTD ($0003)
Figure 12-13. Port D I/O Circuit
When bit DDRDx is a logic 1, reading address $0003 reads the PTDx data latch.
When bit DDRDx is a logic 0, reading address $0003 reads the voltage level on the
pin. The data latch can always be written, regardless of the state of its data
direction bit. Table 12-4 summarizes the operation of the port D pins.
Table 12-4. Port D Pin Functions
DDRD
Bit
PTD
Bit
Bit in Use
by ADC
I/O Pin
Mode
Accesses
to DDRD
Read/Write
0
X
No
Input, Hi-Z
DDRD[6:0]
1
X
No
Output
DDRD[6:0]
0
X
Yes
Input, Hi-Z
DDRD[6:0]
1
X
Yes
Input, Hi-Z
DDRD[6:0]
X = Don’t Care
Hi-Z = High Impedance
1. Writing affects data register, but does not affect input.
Accesses to PTD
Read
Pin
PTD[6:0]
0
PTD[6:0]
Write
PTD[6:0](1)
PTD[6:0]
PTD[6:0](1)
PTD[6:0]
Data Sheet
164
Input/Output (I/O) Ports
For More Information On This Product,
Go to: www.freescale.com
MC68HC08AS32A — Rev. 1
MOTOROLA