English
Language : 

MC68HC08AZ60A Datasheet, PDF (341/480 Pages) Motorola, Inc – Microcontrollers
I/O Ports
Port H
20.10.2 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 20-23. Data Direction Register H (DDRH)
DDRH[1:0] — Data direction register H bits
These read/write bits control port H data direction. Reset clears
DDRH[1:0], configuring all port H pins as inputs.
1 = Corresponding port H pin configured as output
0 = Corresponding port H pin configured as input
NOTE: Avoid glitches on port H pins by writing to the port H data register before
changing data direction register H bits from 0 to 1.
Figure 20-24 shows the port H I/O logic.
READ DDRH ($000E)
WRITE DDRH ($000E)
RESET
WRITE PTH ($000A)
READ PTH ($000A)
DDRHx
PTHx
PTGx
MC68HC08AZ60A — Rev 0.0
MOTOROLA
Figure 20-24. Port H I/O Circuit
I/O Ports
Advance Information
341