The LP5814I has 4 independent configurable pattern
units, PATTERN0, PATTERN1, PATTERN2 and PATTERN3. Every pattern unit has 5 PWM
values, 6 time values and 1 play times value.
For PATTERNx (x = 0, 1,
2, 3),
- The 5 PWM values are stored
in PATTERNx_PWM0, PATTERNx_PWM1, PATTERNx_PWM2,
PATTERNx_PWM3 and PATTERNx_PWM4. The 8 bits PWM value can
be programmed from 0 to 255. Exponential dimming curve can also be supported
in the sloper time.
- The 6 time values are devided
into 2 types, pause time and sloper time. There are 2 pause time,
PATTERNx_PAUSE_T0 and PATTERNx_PAUSE_T1. 4 sloper time,
PATTERNx_SLOPER_T0, PATTERNx_SLOPER_T1,
PATTERNx_SLOPER_T2 and PATTERNx_SLOPER_T3. Evey time value can
be configured from 0 to 8s with 16 options.
- The pattern play times value
is stored in PATTERNx_PT and can be configued from 0 to infinite
times with 16 options. When the PATTERNx_PT = 0, the 2 pause time,
output PWM0 for PAUSE_T0 and output PWM4 for PAUSE_T1, are still executed to
construct the pattern unit.
Typical breathing effect example is illustrated as
shown in Figure 7-5.
Advanced breathing effect example is shown in
Figure 7-6. There are 2 different fading speeds are set in the PWM rising and falling
phases, to achieve a complex animation.