MC68HC08AZ60ACFU MOTOROLA [Motorola, Inc], MC68HC08AZ60ACFU Datasheet - Page 341

no-image

MC68HC08AZ60ACFU

Manufacturer Part Number
MC68HC08AZ60ACFU
Description
Microcontrollers
Manufacturer
MOTOROLA [Motorola, Inc]
Datasheet
20.10.2 Data Direction Register H (DDRH)
MC68HC08AZ60A — Rev 0.0
MOTOROLA
NOTE:
DDRH
$000F
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[1:0] — Data direction register H bits
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
Reset:
Read:
Write:
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
Figure 20-23. Data Direction Register H (DDRH)
READ DDRH ($000E)
WRITE DDRH ($000E)
WRITE PTH ($000A)
READ PTH ($000A)
Bit 7
0
0
shows the port H I/O logic.
= Unimplemented
0
6
0
Figure 20-24. Port H I/O Circuit
I/O Ports
RESET
5
0
0
DDRHx
PTHx
0
4
0
3
0
0
2
0
0
Advance Information
DDRH1 DDRH0
1
0
I/O Ports
Bit 0
Port H
0
PTGx
341

Related parts for MC68HC08AZ60ACFU