English
Language : 

MC68HC908GP32 Datasheet, PDF (228/410 Pages) Motorola, Inc – M68HC08 Family of 8-bit microcontroller units (MCUs)
Freescale Semiconductor, Inc.
Input/Output (I/O) Ports
16.6 Port D
Port D is an 8-bit special-function port that shares four of its pins with the
serial peripheral interface (SPI) module and four of its pins with two timer
interface (TIM1 and TIM2) modules. Port D also has software
configurable pullup devices if configured as an input port.
16.6.1 Port D Data Register
The port D data register (PTD) contains a data latch for each of the eight
port D pins.
NOTE: Bit 7 and bit 6 of PTD are not available in a 40-pin dual in-line
package.
Address: $0003
Bit 7
6
5
4
3
2
1
Read:
PTD7
Write:
PTD6
PTD5
PTD4
PTD3
PTD2
PTD1
Reset:
Unaffected by reset
Alternate
Function:
T2CH1
T2CH0
T1CH1
T1CH0 SPSCK
MOSI
MISO
Figure 16-13. Port D Data Register (PTD)
Bit 0
PTD0
SS
PTD7–PTD0 — Port D Data Bits
These read/write bits are software-programmable. Data direction of
each port D pin is under the control of the corresponding bit in data
direction register D. Reset has no effect on port D data.
T2CH1 and T2CH0 — Timer 2 Channel I/O Bits
The PTD7/T2CH1–PTD6/T2CH0 pins are the TIM2 input
capture/output compare pins. The edge/level select bits,
ELSxB:ELSxA, determine whether the PTD7/T2CH1–PTD6/T2CH0
pins are timer channel I/O pins or general-purpose I/O pins. See
Section 22. Timer Interface Module (TIM).
Technical Data
226
MC68HC908GP32•MC68HC08GP32 — Rev. 6
Input/Output (I/O) Ports
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA