English
Language : 

MC68HC08XL36 Datasheet, PDF (280/362 Pages) Freescale Semiconductor, Inc – HCMOS Microcontroller Unit
Freescale Semiconductor, Inc.
Input/Output Ports
Port D
Port D Data
Register
Data Direction
Register D
Port D is an 8-bit, general-purpose I/O port.
PORTD contains the data latches for the eight port D pins.
Address: $0003
Bit 7
6
5
4
3
2
1
Bit 0
Read:
PD7
PD6
PD5
PD4
PD3
PD2
PD1
PD0
Write:
Reset:
Unaffected by Reset
Figure 11. Port D Data Register (PORTD)
PD7–PD0 — 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.
The keyboard interrupt enable bits, KBIE7—KBIE0, in the keyboard
interrupt control register (KBICR), enable the port D pins as external
interrupt pins. (See External Interrupt Module (IRQ) on page 299.)
Data direction register D determines whether each port D pin is an input
or an output. Writing a logic 1 to a DDRD bit enables the output buffer
for the corresponding port D pin; a logic 0 disables the output buffer.
Address: $0007
Bit 7
6
5
4
3
2
1
Read:
DDRD7 DDRD6 DDRD5 DDRD4 DDRD3 DDRD2 DDRD1
Write:
Reset: 0
0
0
0
0
0
0
Figure 12. Data Direction Register D (DDRD)
Bit 0
DDRD0
0
MC68HC08XL36
280
Input/Output Ports
For More Information On This Product,
Go to: www.freescale.com
10-ports_a
MOTOROLA