
PWM mode defined by
<seq_mode1>
and
<seq_mode2>
control bits of
rgb_control
(00H) register:
<seq_mode1>
(bit 7)
0
0
1
1
<seq_mode0>
(bit 6)
0
1
0
1
Mode
Normal mode
Sequential mode with 2 PWM pulses per trigger
Sequential mode with 3 PWM pulses per trigger
Sequential mode with 4 PWM pulses per trigger
CURRENT CONTROL OF THE LEDS
LP5520 has separate 8-bit current control for each LED out-
put. In manual mode the current for red LED is controlled with
current_control_r
(01H) register, for green LED with
current_control_g
(02H)
current_control_b
(03H). Output current can be calculated
with formula:
current (mA) = code x 0.235
, for example 20
mA current is obtained with code 85 (55H).
In automatic and stand-alone modes the LED current values
programmed in EEPROM are used, and the current control
registers have no effect. There are two ways to change the
default current if needed. The defaults can be changed per-
manently by programming new values to the EEPROM. The
other option is to make a temporary change by writing new
current values in SRAM. Since this is not normally needed, it
is only described in the Calibration Application Note AN1459.
and
for
blue
LED
with
OUTPUT ENABLES
R
, G
and B
output activity is controlled with 3 en-
able bits of the
rgb_control
(00H) register:
<en_b>
(bit 2)
1
Blue LED output B
OUT
enabled
<en_g>
(bit 1)
1
Green LED output G
OUT
enabled
<en_r>
(bit 0)
1
Red LED output R
OUT
enabled
0
Blue LED output B
OUT
disabled
0
Green LED output G
OUT
disabled
0
Red LED output R
OUT
disabled
PWM control inputs PWMR, PWMG and PWMB can be used
as external output enables in normal and automatic mode. In
the sequential mode these inputs are the trigger inputs for
respective outputs.
FADE IN / FADE OUT
LP5520 has an automatic fade in and out for the LED outputs.
Fading makes the transitions smooth in on/off switching or
when brightness is changed. It is not applied for the changes
caused by the compensation algorithm. The fade can be
turned on and off using the
<en_fade>
bit in the
rgb_con-
trol
(00H) register. The fade time is constant 520 ms and it
does not depend on how big the brightness change is. The
white balance is maintained during fading. Fading is off in the
Stand-alone mode.
0
Automatic fade disabled
1
Automatic fade enabled
<en_fade>(bit 5)
Fading only works in automatic mode. The LED current reg-
isters should be written to 0 for proper Fade operation. When
the LEDs are turned on with Fading, it is best to set the bright-
ness first and then enable the outputs and automatic mode.
The LEDs can be turned off then by turning off the automatic
mode (write rgb_auto to 0).
www.national.com
16
L