MC68HC908LJ12CPB FREESCALE [Freescale Semiconductor, Inc], MC68HC908LJ12CPB Datasheet - Page 353

no-image

MC68HC908LJ12CPB

Manufacturer Part Number
MC68HC908LJ12CPB
Description
8-bit microcontroller units
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Input/Output (I/O) Ports
17.6 Port D
17.6.1 Port D Data Register (PTD)
Technical Data
354
NOTE:
NOTE:
Alternative Function:
Address:
Port D is an 8-bit special function port that shares four of its pins with
serial peripheral interface (SPI) module and four of its pins with the
keyboard interrupt module (KBI).
Port D is not available in a 52-pin LQFP.
The port D data register contains a data latch for each of the eight port D
pins.
Bit 0–bit 7 of PTD are not available in a 52-pin LQFP.
PTD[7:0] — Port D Data Bits
SS, MISO, MOSI, and SPSCK — SPI functional pins
Reset:
Read:
Write:
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.
These are the chip select, master-input-slave-output, master-output-
slave-input and clock pins for the SPI module. The SPI enable bit,
SPE, in the SPI control register, SPCR, enables these pins as the SPI
functional pins and overrides any control from port I/O logic. See
Section 14. Serial Peripheral Interface Module
$0003
PTD7
KBI7
Bit 7
Figure 17-12. Port D Data Register (PTD)
Input/Output (I/O) Ports
PTD6
KBI6
6
PTD5
KBI5
5
Unaffected by reset
PTD4
KBI4
4
SPSCK
PTD3
3
MC68HC908LJ12
PTD2
MOSI
Freescale Semiconductor
2
(SPI).
PTD1
MISO
1
Rev. 2.1
PTD0
Bit 0
SS

Related parts for MC68HC908LJ12CPB