background image

1

AVR180: External Brown-Out Protection

Features

Low-Voltage Detector

Prevent Register and EEPROM 
Corruption

Two Discrete Solutions

Integrated IC Solution

Extreme Low-Cost Solution

Extreme Low-Power Solution

Formulas for Component Value 
Calculations 

Complete with Example Schematics

Introduction

This application note shows in detail how
to prevent system malfunction during
periods of insufficient power supply volt-
age. It describes techniques to prevent
the CPU from executing code during
periods of low power by use of external
low voltage detectors. These events are
often referred to as “Brown-Outs”, where
power supply voltage drops to an insuffi-
cient level, or “Black-Outs” where power
supply voltage is completely removed for
a period of time. 

Two discrete solutions are discussed in
detail, allowing the user to calibrate the
system requirements. A complete guide
to integrated circuit (IC) solutions is also
included. By the use of these tech-
niques, the following can be prevented in
the situations described above:

• CPU Register corruption

• I/O Register corruption

• I/O-pin random toggling

• SRAM corruption

• EEPROM corruption

• External Non-Volatile Memory 

corruption

Note that AVR

®

 internal Flash Program

Memory contents are never affected by
insufficient power supply voltage.

Theory of Operation

For the CPU to successfully decode and
execute instructions, the supplied volt-
age must always stay above the mini-
mum voltage level set by the chosen
operating frequency. When supplied
voltage drops below this level, the CPU
may start to execute some instructions
incorrectly. The result is unexpected
activity on the internal data and control
lines. This activity may cause CPU Reg-
isters, I/O Registers and data memories
to get corrupted.

To a void  these p ro ble ms, the  CPU
should be prevented from executing
code during periods of insufficient supply
voltage. This is best ensured by the use
of an external Power Supply Low Volt-
age Detector. Below a fixed threshold
voltage V

T

, the detector circuit forces the

RESET pin low (active). Forcing RESET
low immediately stops the CPU from
executing code. While the supplied volt-
age is below the required threshold volt-
age V

T

, the MCU is halted, making sure

the system stays in a known state. When
the supplied voltage rises above this pre-
defined voltage, the RESET pin is again
released, and the MCU starts to execute
code  b eginn in g at th e re se t ve ctor
(0x0000).

Threshold Voltage

It is recommended to set the threshold
voltage 5-15% below typical V

CC

, to

allow for small fluctuations in supplied
voltage. The threshold voltage should
always be selected to ensure that the
detector will keep the device properly
reset when supply voltage drops below
the critical voltage required by the CPU.
Care should be taken to ensure suffi-
ciently high detector threshold voltage
even in worst case situations.

8-Bit 
Microcontroller

Application 
Note

Rev. 1051A–10/98

Summary of Contents for AVR180

Page 1: ...e instructions the supplied volt age must always stay above the mini mum voltage level set by the chosen operating frequency When supplied voltage drops below this level the CPU may start to execute s...

Page 2: ...s described in the introduction may initialize an unintended write to the non volatile memory This may cause random corruption of the memory contents Note 1 As the AVR CPU is not capable of writing to...

Page 3: ...ost design The voltage transition on the RESET pin is very steep Combined with the large hysteresis the accuracy is high On the other hand the response time is slow which makes it unsuitable for rapid...

Page 4: ...ly large current C1 and C2 Capacitors C1 and C2 short RF noise picked up in the cir cuitry and amplified by the transistors Both capacitors can be omitted but a value greater than 1nF is recommended F...

Page 5: ...tor R5 is usually chosen much smaller than the other resistors R1 R4 the last two expressions both sim plify to I VCC R1 R2 R3 R4 VCC 1 R1 R2 1 R3 R4 I VCC R1 R2 R3 R4 R5 R RESET I VCC R1 R2 R5 R RESE...

Page 6: ...transistor T1 is open keeping RESET at VCC When the supply voltage VCC drops below the threshold voltage VT the transistor T1 closes This allows resistor R3 to pull RESET low active The closing of th...

Page 7: ...ide the transistor T1 and pull the RESET pin low To ensure proper low voltage detector operation the series resistance in R3 R4 should not exceed the recommended 50 k Threshold Accuracy As the thresho...

Page 8: ...e reset is held active for a defined amount of time after the condition power on reset brown out reset etc that caused the reset has returned to normal see Figure 6 Some of these devices also provide...

Page 9: ...nput pin is higher than the reference voltage the output will be activated The threshold voltage is easily defined by a volt age divider R1 and R2 Notes 1 Offered by Maxim Integrated Product Inc 2 Off...

Page 10: ...AVR180 10...

Page 11: ...AVR180 11...

Page 12: ...port devices or systems Atmel Headquarters Atmel Operations Corporate Headquarters 2325 Orchard Parkway San Jose CA 95131 TEL 408 441 0311 FAX 408 487 2600 Europe Atmel U K Ltd Coliseum Business Centr...

Reviews: