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:
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.
Symbol | Description | Min. | Typ. | Max. | Unit |
---|---|---|---|---|---|
ILED | LED driver current | 5 | mA | ||
VLEDn |
Voltage on pin LED0, LED1, and LED2 |
0.5 | VSYS | V |
Instance | Base address | Description |
---|---|---|
LEDDRV | 0x00000A00 |
LEDDRV registers LEDDRV register map |
Register | Offset | Description |
---|---|---|
LEDDRV0MODESEL | 0x0 |
Select for LED_0 mode |
LEDDRV1MODESEL | 0x1 |
Select for LED_1 mode |
LEDDRV2MODESEL | 0x2 |
Select for LED_2 mode |
LEDDRV0SET | 0x3 |
Set LED_0 to be On |
LEDDRV0CLR | 0x4 |
Clear LED_0 to be Off |
LEDDRV1SET | 0x5 |
Set LED_1 to be On |
LEDDRV1CLR | 0x6 |
Clear LED_1 to be Off |
LEDDRV2SET | 0x7 |
Set LED_2 to be On |
LEDDRV2CLR | 0x8 |
Clear LED_2 to be Off |
Address offset: 0x0
Select for LED_0 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 for LED0 mode |
||||||||||||||||||||||||||||||||
ERROR |
0 |
Error condition from Charger |
|||||||||||||||||||||||||||||||||
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
HOST |
2 |
Driven from register LEDDRV_0_SET/CLR |
|||||||||||||||||||||||||||||||||
NOTUSED |
3 |
Not used |
Address offset: 0x1
Select for LED_1 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 for LED1 mode |
||||||||||||||||||||||||||||||||
ERROR |
0 |
Error condition from Charger |
|||||||||||||||||||||||||||||||||
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
HOST |
2 |
Driven from register LEDDRV_1_SET/CLR |
|||||||||||||||||||||||||||||||||
NOTUSED |
3 |
Not used |
Address offset: 0x2
Select for LED_2 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 for LED2 mode |
||||||||||||||||||||||||||||||||
ERROR |
0 |
Error condition from Charger |
|||||||||||||||||||||||||||||||||
CHARGING |
1 |
Charging indicator (On during charging) |
|||||||||||||||||||||||||||||||||
HOST |
2 |
Driven from register LEDDRV_2_SET/CLR |
|||||||||||||||||||||||||||||||||
NOTUSED |
3 |
Not used |
Address offset: 0x3
Set LED_0 to be 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 is in HOST mode |
Address offset: 0x4
Clear LED_0 to be 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 is in HOST mode |
Address offset: 0x5
Set LED_1 to be 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 is in HOST mode |
Address offset: 0x6
Clear LED_1 to be 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 is in HOST mode |
Address offset: 0x7
Set LED_2 to be 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 is in HOST mode |
Address offset: 0x8
Clear LED_2 to be 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 is in HOST mode |