English
Language : 

MC68HC05P9A Datasheet, PDF (74/158 Pages) Freescale Semiconductor, Inc – HCMOS Microcontroller Unit
Parallel I/O Ports
Freescale Semiconductor, Inc.
The port C data register reads normally while the ADC is on, except
that the bit corresponding to the currently selected ADC input pin
reads as logic 0.
Writing to bits PC7–PC3 while the ADC is on can produce
unpredictable ADC results.
Data Direction
Data direction register C determines whether each port C pin is an input
Register C (DDRC) or an output.
$0006 Bit 7
6
5
4
3
2
1
Bit 0
Read:
DDRC7 DDRC6 DDRC5 DDRC4 DDRC3 DDRC2 DDRC1 DDRC0
Write:
Reset: 0
0
0
0
0
0
0
0
Figure 36. Data Direction Register C (DDRC)
DDRC[7:0] — Data Direction Register C Bits
These read/write bits control port C data direction. Reset clears
DDRC[7:0], configuring all port C pins as inputs.
1 = Corresponding port C pin configured as output
0 = Corresponding port C pin configured as input
NOTE: 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.
Writing to bits DDRC7–DDRC3 while the ADC is on can produce
unpredictable ADC results.
Figure 37 shows the I/O logic of port C.
14-mc68hc05p9a
74
Parallel I/O Ports
MOTOROLA
For More Information On This Product,
Go to: www.freescale.com