XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 193

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
12.6.1 Port D Data Register (PTD)
12.6.2 Data Direction Register D (DDRD)
MC68HC(7)08KH12
MOTOROLA
Rev. 1.0
Function:
Alternate
Address:
The port D data register contains a data latch for each of the eight port D
pins.
PTD[7:0] — Port D Data Bits
The port D pullups are automatically enabled if the respective pin is
configured as a keyboard interrupt. (See
Interrupt Functional
The port-D keyboard interrupt enable bits, KBDIE7—KBDIE0, in the
port-D keyboard interrupt enable register (KBDIER), enable the port D
pins as external interrupt pins.
Module
Data direction register D determines whether each port D pin is an input
or an output. Writing a logic one to a DDRD bit enables the output buffer
for the corresponding port D pin; a logic zero disables the output buffer.
Reset:
Read:
Write:
These read/write bits are software programmable. Data direction of
each port D pin is under control of the corresponding bit in data
direction register D. Reset has no effect on port D data.
$0003
KBD7
PTD7
(KBI).
Bit 7
Figure 12-10. Port D Data Register (PTD)
PTD6
KBD6
6
I/O Ports
Description.)
PTD5
KBD5
5
See Section 15. Keyboard Interrupt
Unaffected by reset
PTD4
KBD4
4
KBD3
PTD3
15.4.1 Port-D Keyboard
3
KBD2
PTD2
2
Advance Information
PTD1
KBD1
1
I/O Ports
PTD0
KBD0
Bit 0
Port D
193

Related parts for XC68HC08KH12