MC68HC08AZ60ACFU MOTOROLA [Motorola, Inc], MC68HC08AZ60ACFU Datasheet - Page 326

no-image

MC68HC08AZ60ACFU

Manufacturer Part Number
MC68HC08AZ60ACFU
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
I/O Ports
20.6 Port D
20.6.1 Port D Data Register (PTD)
Advance Information
326
NOTE:
$0003
PTD
Functions
Alternate
Reset:
Read:
Write:
Port D is an 8 -bit special function port that shares seven of it’s pins with
the analog to digital converter and two with the TIMA and TIMB modules
The port D data register contains a data latch for each of the eight port
D pins.
PTD[7:0] — Port D Data Bits
ATD[14:8] — ADC Channel Status Bits
PTD6/ATD14/TACLK–PTD0/ATD8 are seven of the 15 analog-to-digital
converter channels. The ATD channel select bits, CH[4:0], determine
whether the PTD6/ATD14/TACLK–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.
Data direction register D (DDRD) does not affect the data direction of
port D pins that are being used by the TIMA or TIMB. However, the
DDRD bits always determine whether reading port D returns the states
of the latches to logic 0.
PTD[7:0] are read/write, software programmable bits. Data direction
of PTD[7:0] pins are under the control of the corresponding bit in data
direction register D.
PTD7
Bit 7
R
Figure 20-10. Port D Data Register (PTD)
ATD14/
TACLK
PTD6
6
I/O Ports
ATD13
PTD5
5
ATD12/
Unaffected by reset
TBCLK
PTD4
4
ATD11
PTD3
3
MC68HC08AZ60A — Rev 0.0
ATD10
PTD2
2
PTD1
ATD9
1
MOTOROLA
PTD0
ATD8
Bit 0

Related parts for MC68HC08AZ60ACFU