English
Language : 

MC68HC08AS32 Datasheet, PDF (194/394 Pages) Motorola, Inc – M68HC08 Family of 8-bit microcontroller units (MCUs)
Input/Output (I/O) Ports
15.6 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).
15.6.1 Port D Data Register
The port D data register contains a data latch for the seven port D pins.
Address: $0003
Bit 7
Read: 0
Write: R
Reset:
Alternate
Functions:
R
6
5
4
3
2
PTD6 PTD5 PTD4 PTD3 PTD2
ATD14/
TCLK
ATD13
Unaffected by Reset
ATD12 ATD11
ATD10
1
PTD1
ATD9
Bit 0
PTD0
ATD8
R = Reserved
Figure 15-10. 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.
ATD[14:8] — ADC Channel Status Bits
PTD6/ATD14/TCLK–PTD0/ATD8 are seven of the 15
analog-to-digital converter channels. The ADC channel select bits,
CH[4:0], determine whether the PTD6/ATD14/TCLK–PTD0/ATD8
pins are ADC channels or general-purpose I/O pins. If an ADC
channel is selected and a read of this corresponding bit in the port B
data register occurs, the data will be 0 if the data direction for this bit
is programmed as an input. Otherwise, the data will reflect the value
in the data latch. (See Section 19. Analog-to-Digital Converter
(ADC).)
Advance Information
194
Input/Output (I/O) Ports
MC68HC08AS32 — Rev. 3.0
MOTOROLA