Semiconductor

Brownout Detection and Watchdog Timers in Reliable Embedded Designs

Industry Inspire Editorial Team Published Oct 24, 2026 Updated Oct 24, 2026 8 min read

Reliable embedded systems must survive two common classes of failure:

  1. unstable power,
  2. stalled software.

Brownout detection protects the microcontroller when supply voltage becomes too low for reliable operation.

A watchdog timer protects the system when software stops behaving correctly.

Together they create a basic fault-containment layer for:

  • industrial controllers,
  • motor drives,
  • sensors,
  • robots,
  • appliances,
  • automotive electronics.

Fundamentals and Technology Overview

What Is a Brownout?

A brownout occurs when supply voltage falls below the normal operating level but does not necessarily drop completely to zero.

Possible causes include:

  • weak battery,
  • motor startup current,
  • supply overload,
  • cable drop,
  • switching transient,
  • failing regulator.

The MCU may still appear powered while internal timing margins are no longer guaranteed.

Why Low Voltage Is Dangerous

A microcontroller operated below its safe voltage can behave unpredictably.

Possible effects include:

  • incorrect instruction execution,
  • corrupted RAM,
  • flash write failure,
  • peripheral malfunction,
  • communication errors.

The processor may not simply turn off cleanly.

That is why hardware voltage supervision is important.

Power-On Reset

Power-On Reset keeps the MCU in reset while supply voltage is too low during startup.

Microchip explains that POR ensures memories, registers, digital and analog circuits are not allowed to operate before the supply reaches a valid level.

Brown-Out Reset

A Brown-Out Reset, or BOR, monitors voltage during normal operation.

If supply drops below the configured threshold:

  • the MCU is held in reset,
  • or a reset is generated.

This prevents execution in an unsafe voltage range.

Brown-Out Detector

Some devices distinguish between:

  • brownout detector,
  • brownout reset.

A detector may generate:

  • interrupt,
  • status flag.

A reset circuit may directly reset the MCU.

Programmable Threshold

Many MCUs allow several brownout thresholds.

The threshold should match:

  • operating voltage,
  • CPU frequency,
  • flash limits.

Voltage-Frequency Relationship

High CPU frequency usually requires higher supply voltage.

Microchip explicitly warns that the brownout level should be selected so the MCU cannot operate at a clock rate that exceeds what the current voltage can support.

Brownout Hysteresis

Hysteresis prevents rapid reset cycling around the threshold.

Without hysteresis, noisy voltage near the threshold could repeatedly:

  • reset,
  • release,
  • reset.

Voltage Level Monitor

Some MCUs provide a voltage-level monitor in addition to BOR.

The software can receive an early warning before the voltage reaches the reset threshold.

Early Warning

An early warning interrupt can allow firmware to:

  • stop writes,
  • save state,
  • disable outputs,
  • log fault.

Then BOR handles the final unsafe voltage region.

Safety, Security, and Reliability

External Supervisor

An external voltage supervisor can provide independent monitoring.

This is useful when:

  • functional safety is required,
  • MCU internal monitor is insufficient,
  • multiple rails must be supervised.

TI's TIDA-01369 reference design supervises MCU core and I/O rails and uses hardware reset outputs when faults occur.

Power-Fail State Saving

If the system needs to preserve data before shutdown, the design must ensure enough:

  • hold-up energy,
  • time

between early warning and final reset.

Possible storage includes:

  • FRAM,
  • EEPROM,
  • Flash with safe transaction logic.

Watchdog Timer

A watchdog timer monitors software progress.

The application must periodically service, or "feed," the watchdog.

If software fails to do so within the allowed time:

  • the watchdog times out,
  • the system resets or enters a fault response.

Why Watchdogs Are Needed

Software can fail because of:

  • deadlock,
  • runaway pointer,
  • unexpected interrupt behavior,
  • EMI-induced fault,
  • stack corruption.

A watchdog provides an independent path to recover.

Independent Watchdog Clock

A watchdog is stronger when it uses a clock independent of the main CPU clock.

If the primary clock fails, an independent watchdog can continue timing.

Simple Watchdog

A basic watchdog defines one timeout.

Software must refresh it before the timeout expires.

Problem:

A broken program could accidentally refresh it too frequently and still appear healthy.

Windowed Watchdog

A Windowed Watchdog Timer defines:

  • earliest valid refresh time,
  • latest valid refresh time.

Microchip explains that a WWDT has both upper and lower timing thresholds.

A refresh that is:

  • too early,
  • too late

indicates a fault.

Why Windowed Watchdog Is Stronger

It can detect:

  • software stuck in a fast loop,
  • incorrect task timing,
  • stalled execution.

This provides better coverage than a simple timeout.

Watchdog Placement

Do not feed the watchdog from a periodic interrupt that runs even if the main application is broken.

The watchdog refresh should prove that critical software is healthy.

Task-Supervised Watchdog

In an RTOS system, each critical task can report:

  • heartbeat,
  • progress.

A supervisor task feeds the hardware watchdog only when all critical tasks are healthy.

Watchdog Timeout Selection

A timeout that is too short causes nuisance resets.

A timeout that is too long delays recovery.

Choose the timeout based on:

  • worst-case task execution,
  • startup,
  • communication delays.

Applications and Practical Examples

Startup Behavior

Some systems intentionally delay watchdog activation during startup.

Others use a long startup timeout and then switch to a shorter runtime window.

Debug Mode

Watchdog behavior during debugging should be understood.

Some MCUs allow watchdog timers to pause when:

  • CPU is halted by debugger.

Production configuration may differ.

Reset-Cause Register

After restart, firmware should read the reset cause.

Possible causes include:

  • power-on reset,
  • brownout,
  • watchdog,
  • external reset.

Logging this helps diagnostics.

Brownout + Watchdog Combination

These mechanisms cover different faults.

Brownout

Protects against:

  • invalid supply voltage.

Watchdog

Protects against:

  • software execution failure.

Both are required for robust unattended systems.

Watchdog and Clock Failure

If the watchdog uses an independent oscillator, it can also help recover from a main-clock failure.

But a dedicated clock-failure monitor provides faster and more explicit detection.

Safe-State Output Behavior

A reset alone may not be enough.

Industrial systems should define how outputs behave during reset.

Examples:

  • motor PWM disabled,
  • relay de-energized,
  • heater off.

Hardware gating may be needed.

Motor Drive Example

A motor controller can use:

  • undervoltage monitor,
  • brownout reset,
  • watchdog,
  • PWM fault input.

If voltage collapses:

  • PWM is disabled,
  • MCU reset occurs.

If software hangs:

  • watchdog resets the system.

PLC Example

A PLC module may:

  • monitor 24 V rail,
  • use BOR on MCU core,
  • use watchdog for scan-cycle supervision.

After restart, it can report the reset cause to:

  • diagnostics system.

Battery Sensor Example

A battery device can use a voltage monitor to detect:

  • low battery.

Firmware can save state and enter deep sleep before BOR occurs.

Communication Gateway Example

A watchdog can recover a gateway from:

  • protocol deadlock,
  • driver failure.

The reset should be logged for root-cause analysis.

Brownout During Flash Write

A particularly dangerous situation is power loss while Flash is being programmed.

Possible result:

  • corrupted configuration,
  • incomplete firmware update.

Use:

  • brownout protection,
  • redundant data,
  • CRC.

Implementation, Testing, and Optimization

Watchdog During Firmware Update

A long Flash operation may exceed normal watchdog timing.

Firmware should use a carefully designed update strategy rather than disabling the watchdog for long uncontrolled periods.

Functional Safety

Brownout and watchdog mechanisms contribute to diagnostic coverage.

Safety-oriented MCU families may include:

  • independent watchdog,
  • windowed watchdog,
  • voltage monitors,
  • clock monitors.

Hardware Independence

The strongest safety mechanisms should be as independent as practical from the function they monitor.

Examples:

  • watchdog uses separate oscillator,
  • external supervisor monitors MCU supply.

Common Design Mistake: Disabling BOR to Save Power

This can expose the MCU to unreliable low-voltage operation.

If power matters, evaluate:

  • low-power BOR options,
  • threshold configuration

rather than blindly disabling protection.

Common Design Mistake: Feeding Watchdog Everywhere

If many unrelated code paths can feed the watchdog, it no longer proves the application is healthy.

Common Design Mistake: Feeding Watchdog in ISR

The ISR might continue running while the main application is deadlocked.

Common Design Mistake: Ignoring Reset Cause

Without reset-cause logging, recurring field problems can be hard to diagnose.

Common Design Mistake: No Output Safe State

A reset should not leave actuators in an uncontrolled condition.

Practical Reliability Strategy

Step 1

Define safe operating voltage.

Step 2

Set BOR above the unreliable region.

Step 3

Add early-warning voltage monitoring if state must be saved.

Step 4

Configure watchdog timeout.

Step 5

Use task-based health supervision.

Step 6

Define output safe states.

Step 7

Log reset cause.

Step 8

Test faults intentionally.

Fault-Injection Testing

Test scenarios such as:

  • slow voltage ramp,
  • sudden supply drop,
  • software infinite loop,
  • blocked RTOS task,
  • oscillator failure.

Reliable designs are verified by forcing the fault, not merely assuming protection works.

Current MCU Safety Features

Microchip's 8-bit safety-monitoring portfolio includes:

  • POR,
  • BOR/BOD,
  • voltage level monitoring,
  • watchdog,
  • windowed watchdog,
  • clock failure detection.

ST's STM32 families provide:

  • POR,
  • PDR,
  • BOR,
  • programmable voltage detection

across many product families.

Conclusion

Brownout detection and watchdog timers protect embedded systems from two very different but common failure modes.

Brownout protection ensures the processor does not operate when voltage is too low for reliable execution.

Watchdogs ensure software cannot remain indefinitely stuck without recovery.

A robust design combines:

  • POR,
  • BOR,
  • voltage monitoring,
  • independent watchdog,
  • safe outputs,
  • reset diagnostics.

The most important engineering principle is:

do not rely on software alone to detect conditions that can prevent software from working correctly.

Use hardware supervision to enforce:

  • valid voltage,
  • valid execution timing.

That approach significantly improves the reliability of unattended industrial embedded systems.

Frequently Asked Questions

Power-on reset holds the MCU in reset during startup until voltage becomes valid. Brownout reset monitors voltage during operation and resets the MCU if the supply falls below a safe threshold.

A watchdog is a hardware timer that must be serviced by healthy software. If software fails to refresh it in time, the watchdog triggers a reset or other fault response.

A windowed watchdog requires the refresh to occur within a defined time window. Refreshing too early or too late can both be treated as faults.

An independent clock allows the watchdog to continue running even if the main MCU clock fails or stalls.

Usually not as the only health check. A periodic interrupt may continue running even if the main application is deadlocked. The watchdog should be refreshed only after critical tasks have demonstrated correct progress.

References

  1. Microchip — Security, Safety and Monitoring Peripherals: https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/peripherals/safety-monitoring
  2. Microchip — Watchdog Timer and Brown-Out Monitoring Overview: https://www.microchip.com/en-us/products/microcontrollers/8-bit-mcus/peripherals/safety-monitoring
  3. Texas Instruments — TIDA-01369 Supervised Multi-Rail MCU Power Supply: https://www.ti.com/tool/TIDA-01369
  4. STMicroelectronics — STM32H7B3 Reset and Power Management: https://www.st.com/en/microcontrollers-microprocessors/stm32h7b3ai.html
  5. Microchip — ATmega324PB With Watchdog and Brown-Out Detection: https://www.microchip.com/en-us/product/ATmega324pb

Author

Industry Inspire Editorial Team

Editorial team covering industrial automation, manufacturing growth, and B2B strategy.

Share This Article