Datasheet

Input/Output Ports (I/O)
Technical Data MC68HC908GR8 Rev 4.0
220 Input/Output Ports (I/O) MOTOROLA
16.6 Port D
Port D is an 7-bit special-function port that shares four of its pins with the
serial peripheral interface (SPI) module and three 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
seven port D pins.
.
PTD6PTD0 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.
T2CH0 Timer 2 Channel I/O Bits
The PTD6/T2CH0 pin is the TIM2 input capture/output compare pin.
The edge/level select bits, ELSxB:ELSxA, determine whether the
PTD6/T2CH0 pin is a timer channel I/O pin or a general-purpose I/O
pin. See Timer Interface Module (TIM).
Address: $0003
Bit 7654321Bit 0
Read: 0
PTD6 PTD5 PTD4 PTD3 PTD2 PTD1 PTD0
Write:
Reset: Unaffected by reset
Alternate
Function:
T2CH0 T1CH1 T1CH0 SPSCK MOSI MISO SS
Figure 16-13. Port D Data Register (PTD)
Frees
cale Semiconductor,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...