Download Print this page
Atmel AVR180 Application Note

Atmel AVR180 Application Note

External brown-out protection

Advertisement

Quick Links

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 avoid these problems, 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
, the detector circuit forces the
T
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
, the MCU is halted, making sure
T
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 beginning at the reset vector
(0x0000).
Threshold Voltage
It is recommended to set the threshold
voltage 5-15% below typical V
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
, to
CC
Rev. 1051A–10/98
1

Advertisement

loading

Summary of Contents for Atmel AVR180

  • Page 1 AVR180: External Brown-Out Protection 8-Bit Features Theory of Operation • Low-Voltage Detector For the CPU to successfully decode and Microcontroller • Prevent Register and EEPROM execute instructions, the supplied volt- Corruption age must always stay above the mini- • Two Discrete Solutions mum voltage level set by the chosen •...
  • Page 2 • Alternative 2: Minimum Cost. This is a minimum Without a detector, random CPU activity such as described component cost solution for applications where cost is a in the introduction may initialize an unintended write to the key parameter and power consumption is not critical. AVR180...
  • Page 3: Theory Of Operation

    AVR180 • Alternative 3: High accuracy. High-quality semiconductor Design Hint: Supply Voltage Filtering ICs are used to build an accurate brown-out detector Use low impedance capacitors (low ESR and ESL) on the with low-power consumption. and multi-layer PCB with power planes to improve transient rejection from the power supply.
  • Page 4 RESET sufficiently hard to V . As no current passes old voltage accuracy. It is recommended to choose these through this resistor in normal operating mode, its value with ± 1% tolerance. and accuracy is otherwise of little importance. When AVR180...
  • Page 5: Power Consumption

    AVR180 Power Consumption When voltage drops to the level where the detector acti- vates, transistor T1 closes, T2 opens and the current is: The current consumption in normal operating mode (suffi- ciently high V ) is found by: ≈ ---------------------------------------------------------------- - ) R5 R ...
  • Page 6 0.7 volts in small racy” on page 4. signal silicon transistors. Calibration is also required if the threshold voltage for the transistor varies. This voltage is the constant 0.7 in the equation above. The voltage is stable for the same type of AVR180...
  • Page 7 AVR180 transistor, but take care when selecting a transistor. A Due to the slow transitions on the output of the detector, change in this parameter will seriously affect the threshold variations in RESET threshold in the AVR MCU will lead to voltage of the detector.
  • Page 8 µA range.) When main power The IC reset output can be push-pull or open drain (open supply voltage returns to an acceptable level, the AVR collector), either CMOS or TTL output levels. Open drain AVR180...
  • Page 9 AVR180 should detect the event, wake up and resume execution Figure 9. Integrated Reset Circuit with Adjustable Thresh- where it left off. old Voltage Figure 7. Adding Hysteresis to Threshold Voltage RESET RESET OPTIONAL RESET 1 - 4K W RESET...
  • Page 10 AVR180...
  • Page 11 AVR180...
  • Page 12 No licenses to patents or other intellectual prop- er ty of Atmel are granted by the Company in connection with the sale of Atmel products, expressly or by implication. Atmel’s products are not authorized for use as critical components in life suppor t devices or systems.