English
Language : 

MC68HC08AZ0 Datasheet, PDF (351/444 Pages) Motorola, Inc – Advance Information
Freescale Semiconductor, Inc.
I/O Ports
Port H
Port H
Port H is a 2-bit general-purpose bidirectional I/O port.
Port H data register The port H data register contains a data latch for each of the two port H
(PTH)
pins.
Bit 7
6
5
4
3
2
Read: 0
0
0
0
0
PTH $000B
Write:
Reset:
Unaffected by reset
Alternate Function
= Unimplemented
Figure 22. Port H data register (PTH)
1
Bit 0
PTH1 PTH0
KBD4 KBD3
PTH[1:0] — Port H data bits
These read/write bits are software-programmable. Data direction of
each bit is under the control of the corresponding bit in data direction
register H. Reset has no effect on port G data.
KBD[4:3] — Keyboard inputs
The keyboard interrupt enable bits, KBIE[4:3], in the keyboard
interrupt control register (KBICR), enable the port H pins as external
interrupt pins. See Keyboard Module (KB) on page 319
Data direction
register H (DDRH)
Data direction register H determines whether each port H pin is an input
or an output. Writing a logic one to a DDRH bit enables the output buffer
for the corresponding port H pin; a logic zero disables the output buffer.
DDRH
$000F
Bit 7
6
5
4
3
2
1
Bit 0
Read: 0
0
0
0
0
0
DDRH1 DDRH0
Write:
Reset: 0
0
0
0
0
0
0
0
= Unimplemented
Figure 23. Data direction register H (DDRH)
23-io
MOTOROLA
I/O Ports
For More Information On This Product,
Go to: www.freescale.com
MC68HC08AZ0
349