English
Language : 

MC68HC908LJ12 Datasheet, PDF (353/413 Pages) Freescale Semiconductor, Inc – 8-bit microcontroller units
Input/Output (I/O) Ports
17.6 Port D
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).
NOTE: Port D is not available in a 52-pin LQFP.
17.6.1 Port D Data Register (PTD)
The port D data register contains a data latch for each of the eight port D
pins.
NOTE: Bit 0–bit 7 of PTD are not available in a 52-pin LQFP.
Address: $0003
Bit 7
6
5
4
3
2
Read:
PTD7
Write:
PTD6
PTD5
PTD4
PTD3
PTD2
Reset:
Unaffected by reset
Alternative Function: KBI7
KBI6
KBI5
KBI4 SPSCK MOSI
Figure 17-12. Port D Data Register (PTD)
1
PTD1
MISO
Bit 0
PTD0
SS
PTD[7:0] — 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.
SS, MISO, MOSI, and SPSCK — SPI functional pins
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 (SPI).
Technical Data
354
Input/Output (I/O) Ports
MC68HC908LJ12 — Rev. 2.1
Freescale Semiconductor