Datasheet
Input/Output (I/O) Ports
Data Sheet MC68HC908LJ24/LK24 — Rev. 2.1
386 Input/Output (I/O) Ports Freescale Semiconductor
Table 18-3 summarizes the operation of the port B pins.
18.4.3 Port B LED Control Register (LEDB)
The port-B LED control register (LEDB) controls the direct LED drive
capability on PTB5–PTB0 pins. Each bit is individually configurable and
requires that the data direction register, DDRB, bit be configured as an
output.
When the IRSCI is enabled, setting the LEDB0 bit also enables high
current (15mA) sink capability for the TxD pin.
LEDB[5:0] — Port B LED Drive Enable Bits
These read/write bits are software programmable to enable the direct
LED drive on an output port pin.
1 = Corresponding port B pin is configured for direct LED drive,
with 15mA current sinking capability
0 = Corresponding port B pin is configured for standard drive
Table 18-3. Port B Pin Functions
DDRB
Bit
PTB Bit I/O Pin Mode
Accesses to DDRB Accesses to PTB
Read/Write Read Write
0X
(1)
Notes:
1. X = don’t care.
Input, Hi-Z
(2)
2. Hi-Z = high impedance.
DDRB[7:0] Pin PTB[7:0]
(3)
3. Writing affects data register, but does not affect input.
1 X Output DDRB[7:0] PTB[7:0] PTB[7:0]
Address: $000C
Bit 7654321Bit 0
Read: 0 0
LEDB5 LEDB4 LEDB3 LEDB2 LEDB1 LEDB0
Write:
Reset:00000000
Figure 18-8. Port B LED Control Register (LEDB)
