What is Brown-out detection?

A function that resets the microcontroller when the supply voltage drops below the operating minimum, preventing unreliable behavior and corrupt flash writes.

Field: Embedded Systems & Firmware

Japanese name: ブラウンアウト検出

Why it is needed

When the supply voltage falls, the CPU, flash memory and oscillator are no longer guaranteed to work. The program may execute wrong instructions, and writes to flash or EEPROM may be corrupted partway. Brown-out detection (BOD, or brown-out reset, BOR) holds the microcontroller in reset while the voltage is below a set threshold and lets it run again once the voltage recovers. The threshold has a little hysteresis so the device does not chatter in and out of reset near the boundary.

Choosing the threshold

Many microcontrollers let the threshold be selected; the ATmega328P, for example, offers 1.8 V, 2.7 V and 4.3 V. A microcontroller needs a higher supply voltage at a higher clock frequency, so the threshold is set above the minimum voltage guaranteed for the frequency in use. Too low a setting leaves a range where the device keeps running outside its guaranteed limits. Too high a setting causes a reset every time the voltage dips briefly, for example when a motor starts.

How it differs from power-on reset

Power-on reset watches the voltage rise when power is first applied. Brown-out detection covers a slowly falling supply and brief dips during operation. The detector draws a small current all the time, so some parts allow it to be turned off during sleep in battery-powered devices. When a more accurate threshold is needed, an external voltage supervisor (reset IC) is used.

Try it: questions about Brown-out detection

What is the role of a microcontroller's brown-out detector (BOD, brown-out reset)?

  1. ATo reset the microcontroller when the supply voltage drops below what operation requires, preventing unreliable behavior
  2. BTo turn on an LED when the room gets dark
  3. CTo raise the supply voltage automatically
Show answer and explanation

Answer: A. To reset the microcontroller when the supply voltage drops below what operation requires, preventing unreliable behavior

When a draining battery or unstable supply lowers the voltage, the microcontroller's circuits are no longer guaranteed to work, and it may execute instructions incorrectly or write garbage to flash. A brown-out detector holds the microcontroller in reset while the voltage is below a set threshold and lets it start only after the voltage has recovered sufficiently. It is an important feature for protecting data.

FAQ

What is a brown-out?

A condition where the supply does not go away completely but falls below the required voltage, in contrast to a blackout, where power is lost entirely. It is caused by a draining battery, a large load starting or a momentary sag in the supply.

Can software tell that a reset was caused by a brown-out?

Most microcontrollers have a register that records the cause of the last reset. Reading it at startup distinguishes power-on, brown-out, watchdog and external resets, which helps when investigating a fault.

Questions that mention Brown-out detection (1)

Brown-out detection appears in 2 practice questions across 2 topics, including Embedded Systems & Firmware, Automotive Semiconductors and Functional Safety.

  1. Which is an appropriate voltage-monitoring safety mechanism provided in functional-safety-compliant automotive power ICs and similar devices?

Books on Embedded Systems & Firmware Ad

Learn hands-on: parts and kits

Building real circuits is a good way to check what you learned in the questions.

As an Amazon Associate I earn from qualifying purchases.

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary