English
Language : 

MC68HC08AS32 Datasheet, PDF (146/280 Pages) Motorola, Inc – M68HC08 Family of 8-bit microcontroller units (MCUs)
When bit DDRCx is a logic 1, reading address $0002 reads the PTCx data latch.
When bit DDRCx is a logic 0, reading address $0002 reads the voltage level on the
pin. The data latch can always be written, regardless of the state of its data
direction bit. Table 11-3 summarizes the operation of the port C pins.
Table 11-3. Port C Pin Functions
DDRC
Bit
PTC
Bit
I/O Pin
Mode
Accesses to
DDRC
Read/Write
Accesses to PTC
Read
Write
[7] = 0 PTC2 Input, Hi-Z
DDRC[7]
0
PTC2
[7] = 1 PTC2 Output, MCLK
DDRC[7]
Data Latch
—
0
X
Input, Hi-Z
DDRC[4:0]
Pin
PTC[4:3, 1:0](1)
1
X
Output
DDRC[4:0]
PTC[4:0]
PTC[4:3, 1:0]
X = Don’t Care
Hi-Z = High Impedance
1. Writing affects data register, but does not affect input.
11.5 Port D
Port D is an 8-bit special-function I/O port that shares all of its pins with the
analog-to-digital converter (ADC).
11.5.1 Port D Data Register
The port D data register contains a data latch for the seven port D pins.
Address:
Read:
Write:
Reset:
Alternate
Functions:
$0003
Bit 7
0
R
R
6
PTD6
ATD14/
TCLK
5
PTD5
ATD13
4
3
PTD4
PTD3
Unaffected by reset
ATD12 ATD11
2
PTD2
ATD10
1
PTD1
ATD9
Bit 0
PTD0
ATD8
R
= Reserved
Figure 11-11. Port D Data Register (PTD)
PTD[6:0] — Port D Data Bits
PTD[6:0] are read/write, software programmable bits. Data direction of PTD[6:0]
pins are under the control of the corresponding bit in data direction register D.
Data Sheet
146
MC68HC08AS32 — Rev. 4.1
Freescale Semiconductor