English
Language : 

MC68HC08LT8 Datasheet, PDF (101/156 Pages) Freescale Semiconductor, Inc – Microcontrollers
Port C
PTC[7:0] — Port C Data Bits
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.
FP[24:19] — LCD Driver Frontplanes 24–19
FP[24:19] are pins used for the frontplane output of the LCD driver module. The enable bits, PCEH
and PCEL, in the CONFIG2 register, and LCDE bit in the LCDCR register determine whether the
PTC5/FP24–PTC4/FP23 and PTC3/FP22–PTC0/FP19 pins are LCD frontplane driver pins or
general-purpose I/O pins. See Chapter 8 Liquid Crystal Display (LCD) Driver.
9.4.2 Data Direction Register C (DDRC)
Data direction register C determines whether each port C pin is an input or an output. Writing a logic 1 to
a DDRC bit enables the output buffer for the corresponding port C pin; a logic 0 disables the output buffer.
NOTE
For devices packaged in a 44-pin package, PTC4–PTC5 are not
connected. DDRC4:5 should be set to a 1 to configure PTC4–PTC5 as
outputs.
Address:
Read:
Write:
Reset:
$0006
Bit 7
6
5
4
3
2
1
DDRC7 DDRC6 DDRC5 DDRC4 DDRC3 DDRC2 DDRC1
0
0
0
0
0
0
0
Figure 9-10. Data Direction Register C (DDRC)
Bit 0
DDRC0
0
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. Figure 9-11 shows the
port C I/O logic.
READ DDRC ($0006)
WRITE DDRC ($0006)
RESET
WRITE PTC ($0002)
DDRCx
PTCx
PTCx
READ PTC ($0002)
Figure 9-11. Port C I/O Circuit
MC68HC08LT8 Data Sheet, Rev. 1
Freescale Semiconductor
101