9 / 19
After power-up reset operation finished, the ISR.4(PUIS) will be set to “1”. The INTN port will be
driven low to inform master AW2013 has finished the power-up operation and is ready to work. This
bit can also be used to check whether there’s a power-down event after reading this register last
time.
7.2 SLEEP Mode and RUN Mode
SLEEP mode: AW2013 will enter SLEEP mode after power-up, if no register configured.In
this mode, internal OSC will be closed, LED0~2 will output high-resistance,
power consumption is 90uA
RUN mode: Set GCR.0(LEDE) to “1”, AW2013 will enter RUN mode. OSC starts to work
in 5us with the oscillation frequency at 16MHz. The power consumption in
this mode is about 450uA
7.3 Soft Reset
AW2013 supports soft reset function. By writing 55h to the register RSTR(address 00h), the device
will be soft reset, all of the control circuits and configurable registers are reset to default state.
8 LED Function And Configuration
8.1 General
AW2013 has a 3-channel independent LED controller, which can drive 3 individual LEDs or one
group of RGB.
AW2013 drive LEDs with constant current, which has 4 level adjustable: 0mA, 5mA, 10mA, 15mA.
AW2013 support PWM duty cycle control in 256 steps to simplify brightness control.
8.2 LED Control
In AW2013, each channel can be configured independently. By setting “1” to the control bit
LCTR.LEx (x=0~2) can enable the corresponding channel. LCTR.LEx are located in the lowest 3-bit
of register LCTR (address 30h).
- LCTR.LEx = 0, LEDx channel is disabled
- LCTR.LEx = 1, LEDx channel is enabled
8.3 PWM Control Mode
AW2013 can work in PWM control mode by setting PWM mode control bit LCFGx.MD(x=0~2,
address 31h~33h) to “0”.
In this mode, the brightness is controlled by register PWMx(x=0~2) directly. Different kind of
brightness effect can be achieved by writing different value continuously to the register PWMx to
modulate the brightness of the LEDs.
The value of PWMx can be set to 0~255. Different value is corresponding to different brightness. “0”
is corresponding to dark, “255” is corresponding to maximum brightness.
AW2013 also support Fade-in/Fade-out effect by setting LCFGx.FI/LCFGx.FO respectively. If this
kind of effect is enabled, AW2013 can automatically smooth the brightness change when the value
set to PWMx is hopping.
The speed of Fade-in/out is decided by register LEDxT1/LEDxT3.