Datasheet
Input/Output (I/O) Ports
Port C
MC68HC908LJ24/LK24 — Rev. 2.1 Data Sheet
Freescale Semiconductor Input/Output (I/O) Ports 387
18.5 Port C
Port C is an 8-bit special function port that shares all of its port pins with
the liquid crystal display (LCD) driver module.
Port pins PTC0–PTC7 can be configured for direct LED drive.
18.5.1 Port C Data Register (PTC)
The port C data register contains a data latch for each of the eight port C
pins.
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[26:19] — LCD Driver Frontplanes 26–19
FP[26:19] are pins used for the frontplane output of the LCD driver
module. The enable bits, PCEH and PCEL, in the CONFIG2 register,
determine whether the PTC7/FP26–PTC4/FP23 and
PTC3/FP22–PTC0/FP19 pins are LCD frontplane driver pins or
general-purpose I/O pins. See Section 17. Liquid Crystal Display
(LCD) Driver.
LED drive — Direct LED Drive Pins
PTC0–PTC7 pins can be configured for direct LED drive. See 18.5.3
Port C LED Control Register (LEDC).
Address: $0002
Bit 7654321Bit 0
Read:
PTC7 PTC6 PTC5 PTC4 PTC3 PTC2 PTC1 PTC0
Write:
Reset: Unaffected by reset
Alternative Function: FP26 FP25 FP24 FP23 FP22 FP21 FP20 FP19
Additional Function: LED drive LED drive LED drive LED drive LED drive LED drive LED drive LED drive
Figure 18-9. Port C Data Register (PTC)
