SNVS256E November 2003 – October 2024 LP3943
PRODUCTION DATA
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Default value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
B1 | B0 | B1 | B0 | B1 | B0 | B1 | B0 | |
LED3 | LED2 | LED1 | LED0 |
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Default value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
B1 | B0 | B1 | B0 | B1 | B0 | B1 | B0 | |
LED7 | LED6 | LED5 | LED4 |
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Default value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
B1 | B0 | B1 | B0 | B1 | B0 | B1 | B0 | |
LED11 | LED10 | LED9 | LED8 |
Bit # | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Default value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
B1 | B0 | B1 | B0 | B1 | B0 | B1 | B0 | |
LED15 | LED14 | LED13 | LED12 |
B1 | B0 | Function |
---|---|---|
0 | 0 | Output Hi-Z (LED off) |
0 | 1 | Output LOW (LED on) |
1 | 0 | Output dims (DIM0 rate) |
1 | 1 | Output dims (DIM1 rate) |
Programming Example:
STEP | DESCRIPTION | REGISTER NAME | SET TO (HEX) |
---|---|---|---|
1 | Set DIM0 = 1 s 1 = (PSC0 + 1)/160 PSC0 = 159 | PSC0 | 0x09F |
2 | Set duty cycle to 25% Duty Cycle = PWM0/256 PWM0 = 64 | PWM0 | 0x40 |
3 | Set DIM1 = 0.2s 0.2 = (PSC1 + 1)/160 PSC1 = 31 | PSC1 | 0x1F |
4 | Set duty cycle to 50% Duty Cycle = PWM1/256 PWM1 = 128 | PWM1 | 0x80 |
5 | LEDs 13, 14 and 15 off Output = HIGH | LS3 | 0x03 |
6 | LEDs 0 to 7 Output = DIM0 | LS0, LS1 | LS0 = 0xAA LS1 = 0xAA |
7 | LEDs 8 to 12 Output = DIM1 | LS2, LS3 | LS2 = 0xFF LS3 = 0x03 |