To get the design
parameters in Section 8.2.2, the following program steps can be referred.
After VCC powering
up and waiting around 1 ms,
- Execute
I2C slave addressing, for details refer
to the sample code
- Set
chip_en = 1 to enable the device (Write 01h to
register 000h)
- Set max_current = 1h to set 51 mA maximum output LED
current (Write 01h to register 001h)
- Set
led_mode = 4h to configure the LED drive mode as
scan drive mode with 4 scans (Write 40h to
register 002h)
- Set
lsd_threshold = 3h is recommended to avoid incorrect
LSD detection (Write 0Bh to register 00Dh)
Leave the PWM frequency, scan order, manual or
autonomous mode, linear or exponential dimming
curve, phase align method, vsync mode, blank time,
clamp settings as default. (In other application
requirements, these functions can be set)
- Send
update command to complete configuration settings
(Write 55h to register 010h)
- Read back
config_err_status to check if the configuration is
proper (Read register 300h)
- Enable
all 12 LEDs (Write F0h to register 020h, write
FFh to register 021h)
- Set 51 mA
peak current for red LEDs, 40 mA peak current for
green and blue LEDs (Write FFh to registers 035h,
038h, 03Bh, 03Eh, write CCh to registers 034h,
036h, 037h, 039h, 03Ah, 03Ch, 03Dh, 03Fh)
- Set 100%
duty cycle to illuminate the LEDs (Write FFh to
registers 044h - 04Fh)