LEDDRV is made of three identical low-side LED drivers on pins LED0, LED1, and LED2. Pin configurations are independent of each other.
The pins can be configured in registers for the following purposes:
- Charge indication
- Charge error indication
- An RGB LED (requires all three pins)
- A general purpose, open-drain output
When a pin is used as a charging indication, the charging state machine controls LEDDRV.
Pins that are used as general purpose LED drivers have a control register containing separate bits for enabling each driver, see registers LEDDRV0SET and LEDDRV0CLR. The host software will set or reset the control register bit, which alters the state of the LED associated with that register bit.
LEDDRV can be used as open-drain digital output. Open Drain mode is the same as the general purpose LED drivers but with the LED removed. An external pull up resistor is required for each LED pin operating in Open Drain mode.
The system can control an RGB LED component (or three separate LEDs) . The LED0, LED1, and LED2 pins can connect to any of the RGB LED cathodes (low-side). The anodes (common or individual) must be connected to the VSYS pin. The R, G, or B value is activated by enabling the associated LED register. Combinations of RG, RB, GB, and RGB are possible.
Electrical specification
| Symbol | Description | Min. | Typ. | Max. | Unit |
|---|---|---|---|---|---|
| ILED | LED driver current | 5 | mA | ||
| VLEDn |
Voltage on pin LED0, LED1, and LED2 |
0.5 | VSYS | V |
Registers
Instances
| Instance | Base address | Description |
|---|---|---|
| LEDDRV | 0x00000A00 |
LEDDRV registers LEDDRV register map |
Register overview
| Register | Offset | Description |
|---|---|---|
| LEDDRV0MODESEL | 0x0 |
Select LED0 mode |
| LEDDRV1MODESEL | 0x1 |
Select LED1 mode |
| LEDDRV2MODESEL | 0x2 |
Select LED2 mode |
| LEDDRV0SET | 0x3 |
Turn LED0 On |
| LEDDRV0CLR | 0x4 |
Turn LED0 Off |
| LEDDRV1SET | 0x5 |
Turn LED1 On |
| LEDDRV1CLR | 0x6 |
Turn LED1 Off |
| LEDDRV2SET | 0x7 |
Turn LED2 On |
| LEDDRV2CLR | 0x8 |
Turn LED2 Off |
LEDDRV0MODESEL
Address offset: 0x0
Select LED0 mode
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | A | |||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
RW |
LEDDRV0MODESEL |
Select LED0 mode |
||||||||||||||||||||||||||||||||
|
ERROR |
0 |
Error condition from charger |
|||||||||||||||||||||||||||||||||
|
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
|
HOST |
2 |
Driven from register LEDDRV0SET/CLR |
|||||||||||||||||||||||||||||||||
|
NOTUSED |
3 |
Not used |
|||||||||||||||||||||||||||||||||
LEDDRV1MODESEL
Address offset: 0x1
Select LED1 mode
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | A | |||||||||||||||||||||||||||||||||
| Reset 0x01 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
RW |
LEDDRV1MODESEL |
Select LED1 mode |
||||||||||||||||||||||||||||||||
|
ERROR |
0 |
Error condition from charger |
|||||||||||||||||||||||||||||||||
|
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
|
HOST |
2 |
Driven from register LEDDRV1SET/CLR |
|||||||||||||||||||||||||||||||||
|
NOTUSED |
3 |
Not used |
|||||||||||||||||||||||||||||||||
LEDDRV2MODESEL
Address offset: 0x2
Select LED2 mode
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | A | |||||||||||||||||||||||||||||||||
| Reset 0x02 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
RW |
LEDDRV2MODESEL |
Select LED2 mode |
||||||||||||||||||||||||||||||||
|
ERROR |
0 |
Error condition from charger |
|||||||||||||||||||||||||||||||||
|
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
|
HOST |
2 |
Driven from register LEDDRV2SET/CLR |
|||||||||||||||||||||||||||||||||
|
NOTUSED |
3 |
Not used |
|||||||||||||||||||||||||||||||||
LEDDRV0SET
Address offset: 0x3
Turn LED0 On
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV0ON |
Set LED0 to be On |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
SET |
1 |
Turns On LED0 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||
LEDDRV0CLR
Address offset: 0x4
Turn LED0 Off
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV0OFF |
Set LED0 to be Off |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
CLR |
1 |
Turns Off LED0 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||
LEDDRV1SET
Address offset: 0x5
Turn LED1 On
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV1ON |
Set LED1 to be On |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
SET |
1 |
Turns On LED1 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||
LEDDRV1CLR
Address offset: 0x6
Turn LED1 Off
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV1OFF |
Set LED1 to be Off |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
CLR |
1 |
Turns Off LED1 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||
LEDDRV2SET
Address offset: 0x7
Turn LED2 On
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV2ON |
Set LED2 to be On |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
SET |
1 |
Turns On LED2 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||
LEDDRV2CLR
Address offset: 0x8
Turn LED2 Off
| Bit number | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ID | A | ||||||||||||||||||||||||||||||||||
| Reset 0x00 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| ID | R/W | Field | Value ID | Value | Description | ||||||||||||||||||||||||||||||
| A |
W |
LEDDRV2OFF |
Set LED2 to be Off |
||||||||||||||||||||||||||||||||
|
NOEFFECT |
0 |
No effect |
|||||||||||||||||||||||||||||||||
|
CLR |
1 |
Turns Off LED2 if LEDDRVMODESEL = HOST |
|||||||||||||||||||||||||||||||||