For most LED-animation effects, like blinking and breathing, all the RGB LEDs have the same lighting pattern. Instead of controlling the individual LED separately, which occupies the microcontroller resources heavily, the LP50xx device provides an easy coding approach, the LED bank control.
Each channel can be configured as either independent control or bank control through the LEDx_Bank_EN register. When LEDx_Bank_EN = 0 (default), the LED is controlled independently by the related color-mixing and intensity-control registers. When LEDx_Bank_EN = 1, the LP50xx device drives the LEDs in LED bank-control mode. The LED bank has its own independent PWM control scheme, which is the same structure as the PWM scheme of each channel. See PWM Control for Each Channel for more details. When a channel is configured in LED bank-control mode, the related color mixing and intensity control is governed by the bank control registers (BANK_A_COLOR, BANK_B_COLOR, BANK_C_COLOR, and BANK_BRIGHTNESS) regardless of the inputs on its own color-mixing and intensity-control registers.
|OUT NUMBER||BANK Number||RGB LED MODULE NUMBER|
|OUT18 (LP5024 only)||Bank A||LED6|
|OUT19 (LP5024 only)||Bank B|
|OUT20 (LP5024 only)||Bank C|
|OUT21 (LP5024 only)||Bank A||LED7|
|OUT22 (LP5024 only)||Bank B|
|OUT23 (LP5024 only)||Bank C|
With the bank control configuration, the LP50xx device enables users to achieve smooth and live LED effects globally with an ultrasimple software effort. Figure 14 shows an example using LED0 as an independent RGB indicator and others with group breathing effect.