XC68HC08KH12 Motorola, XC68HC08KH12 Datasheet - Page 191

no-image

XC68HC08KH12

Manufacturer Part Number
XC68HC08KH12
Description
MICROCONTROLLER
Manufacturer
Motorola
Datasheet
12.5.2 Data Direction Register C (DDRC)
MC68HC(7)08KH12
MOTOROLA
NOTE:
Rev. 1.0
Address:
PTC[4:0] — Port C Data Bits
The port C pullup enable bit, PCP, in the port option control register
(POC) enables pullups on port C pins if the respective pin is configured
as an input.
The LED direct drive bit, LDD, in the port option control register (POC)
controls the drive options for Port C.
Data direction register C determines whether each port C pin is an input
or an output. Writing a logic one to a DDRC bit enables the output buffer
for the corresponding port C pin; a logic zero disables the output buffer.
DDRC[4:0] — Data Direction Register C Bits
Avoid glitches on port C pins by writing to the port C data register before
changing data direction register C bits from 0 to 1.
Figure 12-9
Reset:
Read:
Write:
These read/write bits are software-programmable. Data direction of
each port C pin is under the control of the corresponding bit in data
direction register C. Reset has no effect on port C data.
These read/write bits control port C data direction. Reset clears
DDRC[4:0], configuring all port C pins as inputs.
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
$0006
Bit 7
0
0
Figure 12-8. Data Direction Register C (DDRC)
(See 12.9 Port
shows the port C I/O logic.
= Unimplemented
6
0
0
I/O Ports
5
0
0
Options.)
DDRC4
4
0
DDRC3
3
0
DDRC2
2
0
Advance Information
DDRC1
1
0
I/O Ports
DDRC0
Bit 0
Port C
0
191

Related parts for XC68HC08KH12