AX8052 Power On Reset

AND9329/D
AX8052 Power On Reset
Introduction
This application note discusses designing power−on reset
for the AX8052F1xx family of microcontrollers for a wide
range of supply voltage conditions. After explaining why a
Power−on−Reset (POR) circuit can fail, this application
note covers the best ways to make POR work reliably.
www.onsemi.com
APPLICATION NOTE
Temporary Loss of Power
Causes
Figure 2 shows a temporary loss of power waveform. In
this scenario, if the VDD_IO voltage does not return to
below 0.1 V before reapplying power again, but lingers in
the range of approximately 0.45 V to 0.7 V and the rise time
is lower than 3.3 V/ms then external reset circuitry or an
external reset device should be used.
The AX8052 microcontroller features a built−in
Power−On Reset circuit which does not draw current except
for negligible leakage. This ultra−low−power consumption
is possible because the internal POR circuitry is edge
sensitive. Therefore certain rise and fall times of the supply
voltage (VDD_IO) are required to trigger the internal POR:
1. Supply voltages starting below 0.1 V with rise and
fall times faster than 0.1 V/ms (normal start−up)
2. Supply voltages starting between 0.1 V and 0.7 V
with the rise and fall times faster than 3.3 V/ms
(fast voltages)
For other cases an external reset circuit is strongly
recommended.
Operation of the device in the voltage range from 0.4 V to
0.8 V without proper reset can cause flash memory loss.
VDD_IO
1.8 − 3.6 V
1.8 − 3.6 V
> 3.3 V/ms
Normal Start−up
Figure 1 depicts the VDD_IO waveform for a normal
start−up. VDD_IO should start at 0.1 V maximum, and then
rise with a slope of at least 0.1 V/ms, to the normal operating
voltage.
~ 0.45 − 0.7 V
t
VDD_IO
Figure 2. Temporary Loss of Power
Power Management Interrupt
1.8 − 3.6 V
Axsem recommends to use power management interrupt
code similar to the example given below. The power
management interrupt is triggered by the voltage of
VDD_IO falling below brown−out threshold, and then puts
the microcontroller into standby mode.
void pwrmgmt_irq(void) __interrupt(6)
{
uint8_t pc = PCON;
if (!(pc & 0x80))
return;
GPIOENABLE = 0;
IE = EIE = E2IE = 0;
for (;;)
PCON |= 0x01;
}
> 0.1 V/ms
< 0.1 V
t
Figure 1. Normal Start−up
If either the maximum start voltage or the slope
requirement cannot be met, Axsem recommends the use of
external reset circuitry or an external reset device.
© Semiconductor Components Industries, LLC, 2015
November, 2015 - Rev. 2
1
Publication Order Number:
AND9329/D
AND9329/D
The interrupt needs to be enabled (IE_6 = 1; EA = 1;). If
the application firmware uses bus master peripherals (like
DMA or AES), these peripherals should be shut down in the
brownout interrupt as well.
The interrupt protects the circuit from the microcontroller
potentially executing arbitrary instructions. The interrupt is
effective if the falling slope of VDD_IO is slower than
approximately 1 V/ms; otherwise, the remaining time is not
sufficient to detect the brown−out condition and to handle
the interrupt.
Alternatively external voltage supervisors and reset
generators can be used. Suitable circuits include the Rohm
Semiconductors BU4211G or BU4811G.7. CONCLUSION
Conclusion
POR is a difficult issue to manage. Many unpredictable
events can influence the circuitry. A power interruption
might not happen often but it can at any time. For many
common cases, the AX8052 internal power−on reset circuit
ensures reliable start−up and no external components are
required. Some corner cases, however, such as temporarily
losing power, may require an external reset circuit.
External Reset Circuit
A reset circuit like the one shown in Figure 3 is suitable
to handle difficult power supply situations. The voltage
across the zener diode and the turn−on voltage of Q1 are kept
constant regardless of VDD_IO. RESET_N is decided as
follows:
RESET_N = VDD_IO if VDD_IO > VZD1 + VONQ1
RESET_N = GND if VDD_IO < VZD1 + VONQ1
Figure 3. Standard Reset Circuit
ON Semiconductor and the
are registered trademarks of Semiconductor Components Industries, LLC (SCILLC) or its subsidiaries in the United States and/or other countries.
SCILLC owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of SCILLC’s product/patent coverage may be accessed
at www.onsemi.com/site/pdf/Patent−Marking.pdf. SCILLC reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation
or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability arising out of the application or use of any product or circuit, and
specifically disclaims any and all liability, including without limitation special, consequential or incidental damages. “Typical” parameters which may be provided in SCILLC data sheets
and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each
customer application by customer’s technical experts. SCILLC does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended,
or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which
the failure of the SCILLC product could create a situation where personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or
unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and
expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim
alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal Opportunity/Affirmative Action Employer. This literature is subject to all applicable
copyright laws and is not for resale in any manner.
PUBLICATION ORDERING INFORMATION
LITERATURE FULFILLMENT:
Literature Distribution Center for ON Semiconductor
19521 E. 32nd Pkwy, Aurora, Colorado 80011 USA
Phone: 303−675−2175 or 800−344−3860 Toll Free USA/Canada
Fax: 303−675−2176 or 800−344−3867 Toll Free USA/Canada
Email: [email protected]
N. American Technical Support: 800−282−9855 Toll Free
USA/Canada
Europe, Middle East and Africa Technical Support:
Phone: 421 33 790 2910
Japan Customer Focus Center
Phone: 81−3−5817−1050
www.onsemi.com
2
ON Semiconductor Website: www.onsemi.com
Order Literature: http://www.onsemi.com/orderlit
For additional information, please contact your local
Sales Representative
AND9329/D