• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • DesignFast
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

What does a watchdog timer watch?

April 16, 2025 By Jeff Shepard Leave a Comment

Watchdog timers (WDTs) watch MCU operations to ensure reliability, especially in embedded systems, robotics, medical devices, electric grid monitoring, deep space missions, and other critical applications. They are used to detect and correct MCU and software glitches without human intervention.

The WDT monitors system operation by listening to signals from the MCU. The system software periodically sends a signal, called a “kick,” to the WDT to restart the timing period, indicating that it’s still functioning properly.

If the kick is not received within the timing period, the WDT detects abnormal operation that triggers a “timeout.” It then issues a reset signal, interrupt, or other recovery action (Figure 1).

Figure 1. When the WDT detects abnormal operation, it triggers a “timeout.” It issues a reset signal, interrupt, or other recovery action. (Image: The Tech Blog)

WDTs can prevent crashes and downtime, boosting the reliability of the systems they monitor. Several types of WDTs are suited to specific operating requirements.

Watchdog timer types

Watchdog timers are available as hardware or software solutions. Hardware WDTs can be internal to the MCU or external in a separate IC. Each design involves performance and cost tradeoffs.

Internal WDTs minimize overall solution size and cost. However, they can have limitations related to design flexibility and system reliability.

External WDTs are more reliable and independent of internal MCU software errors. In most applications, internal WDTs provide an adequate level of reliability, but when maximum reliability is required, an external WDT may be the best choice.

External WDTs can also provide increased flexibility, but they result in larger and higher-cost solutions. Hardware-based WDTs use a dedicated counter, while software implementations use a timer interrupt based on the system clock.

Windowed or non-windowed

Standard WDTs are non-windowed designs that require the software to periodically kick the timer within a set period to monitor if the system has hung up. A windowed WDT uses a monitoring cycle split into CLOSED and OPEN durations called windows for more detailed monitoring of software execution.

That requires more precise timing for valid operation since OPEN and CLOSED windows are only valid at certain times in the cycle. A windowed design also enables it to monitor signals occurring outside a specific timing window and detect if software execution is taking longer or shorter than expected (Figure 2).

Figure 2. A windowed watchdog timer can reset the MCU if software execution occurs before or after a defined normal operation window. (Image: Microchip)

Multistage watchdogs

Multiple WDTs can be cascaded in a multistage structure. These are used when more complex corrective actions are required. They can be implemented with several individual devices or with a single WDT and additional logic to emulate the operation of multiple timers.

In a multistage WDT, the MCU only kicks the first stage. Each subsequent stage has a longer timeout period, supporting increasingly severe actions.

For example, the first stage may only issue a warning signal and provide time for automatic recovery, the next stage may log error data for use in any subsequent fault analysis, the next stage can issue a command to enter a safe operating stage, and the final stage could issue a full system restart (Figure 3).

Figure 3. In a multistage WDT, only the MCU kicks the first stage; subsequent stages have longer timeout periods and initiate increasingly severe corrective actions. (Image: Wikipedia)

Multistage WDTs can improve fault tolerance by allowing several recovery attempts before initiating a full system restart. This can be especially useful in systems subject to temporary glitches that can be recovered without a full restart.

Multistage WDTs can minimize system downtime in critical medical systems and continuous-process industrial applications by allowing multiple opportunities for controlled recovery.

Summary

WDTs watch MCU software execution to improve system reliability. They can be implemented in hardware or software, internal to the MCU, or use an external IC. There are several WDT architectures.

A basic WDT monitors if the system is hung and needs to be restarted. Windowed designs monitor software timing issues and can restart the MCU if software runs too early or too late. Multistage WDTs can issue a series of fault alarms to support fault tolerance, ultimately resulting in a restart if the error is not corrected.

References

Fault Detection Mechanism using Improved Watchdog Timer for Safety Application, International Journal of Research in Engineering, Science and Management
Should You Include an External or Internal Watchdog Timer (WDT) in Your Board Design, Altium
Single and Multistage Watchdog Timers, Sensoray
The Basics of Windowed Watchdogs, Analog Devices
Understanding Watchdog Timers: Ensuring System Reliability, RunTime
Watchdog timer, Wikipedia
What is a watchdog timer (WDT)?, ABLIC
What Is a Watchdog Timer and Why Is It Important?, Texas Instruments
Windowed Watchdog Timer (WWDT), Microchip

EEWorld Online related content

MCU Bits and Bytes: sizes, types, and uses
What’s a PCIe root complex?
How do MCUs support automotive infotainment systems?
What are the elements of secure boot processes?
How does a zero trust security architecture work?

You may also like:


  • What’s a PCIe root complex?

  • How do MCUs support automotive infotainment systems?

  • How to optimize Arduino for low power design

  • MCU Bits and Bytes: sizes, types, and uses
  • ASILs
    What are ASILs and how do they work?

Filed Under: FAQ, Featured Tagged With: FAQ

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured Contributions

Five challenges for developing next-generation ADAS and autonomous vehicles

Securing IoT devices against quantum computing risks

RISC-V implementation strategies for certification of safety-critical systems

What’s new with Matter: how Matter 1.4 is reshaping interoperability and energy management

Edge AI: Revolutionizing real-time data processing and automation

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Internet of Things
Explore practical strategies for minimizing attack surfaces, managing memory efficiently, and securing firmware. Download now to ensure your IoT implementations remain secure, efficient, and future-ready.

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

RSS Current EDABoard.com discussions

  • I/O constraint for Hold check
  • GanFet power switch starts burning after 20 sec
  • 12VAC to 12VDC 5A on 250ft 12AWG
  • Zeropole...
  • Engineer's own PCB layout software guide?

RSS Current Electro-Tech-Online.com Discussions

  • Fuel Auto Shutoff
  • testing ps5 fan
  • Lightbox circuit
  • Cant log in to Easy PC forum
  • I want to make a CRT with some modifications But i have no Idea where to start

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • DesignFast
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy