To get the design parameters in Table 10-1, the following program steps can be referred.
After properly providing the power supplies to LP5813,
- Set chip_en = 1 to enable the device. (Write 01h to register
000h)
- Set boost_vout = Fh to set 4.5 V boost output voltage, and max_current = 1h
to set 51 mA maximum output LED current. (Write 1Fh to register
001h)
- Set led_mode = 4h to configure the LED drive mode as TCM 4 scans. (Write
20h 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 50 mA peak current for
red LEDs (Write FFh to registers 035h, 038h, 03Bh, 03Eh), and 40 mA
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)