To get the design
parameters in Section 8.2.2, the following program steps can be referred.
After properly providing
the power supplies to LP5810
- Set chip_en = 1 to enable the device. (Write 01h to
register 000h)
- Set led_mode = 4h to configure the LED drive mode as
direct drive mode. (Write 40h to register
002h)
- Set lsd_threshold = 3h is recommended to avoid incorrect
LSD detection. (Write 0Bh to register
00Dh)
Let 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 and
FFh to register 021h)
- Set 51mA peak current for red LEDs (Write FFh to
registers 035h, 038h, 03Bh, 03Eh) , and 40mA
peak current for green and blue LEDs (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)