To get the design parameters in Section 9.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 lsd_threshold = 3h is recommended to avoid incorrect LSD detection (Write 0Bh to register 00Dh). Leave the PWM frequency, manual or autonomous mode, linear or exponential dimming curve, phase align method, vsync mode 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 4 LEDs (Write 0Fh to register 020h)
- Set 51 mA peak current for red LEDs, 40 mA peak current for green, blue and white LEDs (write FFh to register 30h, write CCh to registers 031h - 033h)
- Set 100% duty cycle to illuminate the LEDs (Write FFh to registers 040h - 043h)