XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 203

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
12.8.2 Data Direction Register F (DDRF)
MC68HC(7)08KH12
MOTOROLA
NOTE:
Rev. 1.0
Address:
Data direction register F determines whether each port F pin is an input
or an output. Writing a logic one to a DDRF bit enables the output buffer
for the corresponding port F pin; a logic zero disables the output buffer.
DDRF[7:0] — Data Direction Register F Bits
Avoid glitches on port F pins by writing to the port F data register before
changing data direction register F bits from 0 to 1.
Figure 12-3
Reset:
Read:
Write:
These read/write bits control port F data direction. Reset clears
DDRF[7:0], configuring all port F pins as inputs.
1 = Corresponding port F pin configured as output
0 = Corresponding port F pin configured as input
DDRF7
READ DDRF ($000B)
WRITE DDRF ($000B)
WRITE PTF ($0009)
READ PTF ($0009)
$000B
Bit 7
Figure 12-20. Data Direction Register F (DDRF)
0
shows the port F I/O logic.
DDRF6
6
0
Figure 12-21. Port F I/O Circuit
I/O Ports
RESET
DDRF5
5
0
DDRF4
DDRFx
PTFx
4
0
DDRF3
3
0
DDRF2
2
0
Advance Information
DDRF1
1
0
I/O Ports
DDRF0
Bit 0
Port F
0
PTFx
203

Related parts for XC68HC08KH12