HardwareBee
https://www.nuvation.com/
  • Find ASIC Vendors
  • Design Services Directory
    • FPGA Design Services
    • Electronic Design Services
    • Embedded Software Companies
    • Add your company
  • Get Price Quotes From Vendors
    • Electronic Design Companies
    • FPGA Design Companies
    • Embedded Software Companies
    • Design & Manufacturing Companies
    • Get IC Device Prices
  • Emerging ICs Directory
    • UWB
      • Spark Microsystems
    • FPGA
      • Colonge Chip
      • Rapid Silicon
    • Radar
      • Acconeer
    • Add your IC
  • Get IC Prices
  • WikiBee
  • Resources
    • FPGA Academy
    • Embedded Academy
    • FPGA vs ASIC Calculator
    • Watt to dBm Converter
    • dBm to Watt Converter
  • Pricing
    • Get Your Company Listed
    • Book a Demo
    • Get a Monthly Lead List
HardwareBee
  • Design Services Directory
    • FPGA Design Services
    • Electronic Design Services
    • Embedded Software Companies
    • Add your company
  • Get Price Quotes From Vendors
    • Electronic Design Companies
    • FPGA Design Companies
    • Embedded Software Companies
    • Design & Manufacturing Companies
    • Get IC Device Prices
  • Emerging ICs Directory
    • UWB
      • Spark Microsystems
    • FPGA
      • Colonge Chip
      • Rapid Silicon
    • Radar
      • Acconeer
    • Add your IC
  • Get IC Prices
  • WikiBee
  • Resources
    • FPGA Academy
    • Embedded Academy
    • FPGA vs ASIC Calculator
    • Watt to dBm Converter
    • dBm to Watt Converter
  • Pricing
    • Get Your Company Listed
    • Book a Demo
    • Get a Monthly Lead List
8520 Views

Introduction to Watchdog Timer

14/05/2019, hardwarebee

Get a Price Quote

A watchdog timer is a piece of hardware that is constantly monitoring whether the processor is acting properly, and if it detects any anomalies it resets the processor. A watchdog timer is installed in almost every embedded system today, and it’s a mandatory solution especially in products whereas a human cannot access to reboot the system in case of a software failure.

 

What is a Watchdog Timer?

 

A watchdog timer is basically an internal or external device that is installed in a system in order to detect any software anomalies that may arise in embedded systems. It has the responsibility to reset and restart the processor when needed in the case of a software glitch. A watchdog timer is sometimes also called a Computer Operating Properly as it ensures that the processor is functioning as it is meant to.

 

How Does a Watchdog Timer Work?

 

The mechanism behind the working of the watchdog timer is quite simple. The timer basically counts down from a particular value down till the number zero. As per its programming, the software selects a number during the count down and restarts the timer from the top at that given moment. Therefore, the timer never reaches the value of zero if the software is functioning normally.

 

watchdog timer block diagram

 

In the case that there is some form of anomaly or malfunction in the software and it is inactive for some reason, the timer will not be reset and will most likely reach 0.

 

This indicates to the watchdog timer that there is some form of malfunctioning present in the software. As such, it will restart the processor by asserting the reset signal. Consider it to be a way of turning a device “off” and then “on” when it gets stuck in the middle.

 

The watchdog timer itself is a piece of hardware, often in the form of a chip that is attached externally to the processor. In some cases, it included in the CPU itself (internally). The output of the watchdog timer is then directly connected to the reset signal of the processor so that the timer restarts the device if it does not receive the proper input from the embedded system software.

 

Watchdog Restart

 

Another way of referring to the restarting and resetting that the watchdog timer is the term kicking the dog. Picture it in this way: if you are attacked by a wild dog that is out for your blood, but you keep kicking it away, then you will not be bitten. If you fail to kick it away in time, it will bite you and restart you. The dog can be kicked (restart) via writing to the watchdog control port, as shown in the above diagram.

 

Even though the watchdog timer will restart the system every time it detects such an anomaly, it is important to monitor its activity occasionally as well. If the timer is stuck rebooting the same system again and again to no avail, it may be an indication that the equipment may be damaged worse than as expected and would either require to be fixed manually or be left alone as irreparable if it is inaccessible.

 

Watchdog Timer in the Remote Systems

 

For inaccessible systems, it is essential that they be self-reliant and are able to reset the system themselves when needed without having to depend on a person to manually reboot its software. These systems need to be able to refresh themselves in the case that the software hangs so that they do not become permanently disabled and nonfunctional.

 

Watchdog timers are very frequently used in the likes of space probes and related equipment as once these are launched, they may never get in touch with humans ever again. As such, individuals that are adequately trained to analyses the performance of a space probe and fix it cannot access it. So, in order to prevent permanent disability of these probes in the case that they face a simple problem that can be easily resolved with reboot, a watchdog timer is installed.

 

Watchdogs: Single and Multistage

 

Watchdogs can further be arranged varying patterns depending on the application that you wish to extract from them. In a single stage watchdog, you simply install one watchdog timer with the CPU as an external chip or integrated with a microcontroller. The CPU and the watchdog timer may share a single clock signal or may operate with separate clock signals.

 

two stage watchdog timer diagram

 

Sometimes, you may install two or more watchdog timers in a series to create a multi stage where each timer is known as a stage. The first stage is connected to the controller or the processor and it initiates the corrective action in the subsequent stage. This carries on until the last stage has been reached. In such a manner, instead of having a single corrective action in the form of a restart, a multistage watchdog is able to deploy a sequential series of corrective actions triggered by each stage, allowing the user to employ a more complex and specific corrective course of action.

linked in icon
Sign up for HardwareBee
* = required field

Recent Stories

Low Noise Amplifier: Ultimate Guide
Low Noise Amplifier: Ultimate Guide
ASIC Prototyping
FPGA Prototyping Services
FPGA Prototyping Services
QFN Socket
QFN Socket
FPGA in Medical and Healthcare
FPGA in Medical and Healthcare
The Ultimate Guide to Logic Chips
The Ultimate Guide to Logic Chips
FPGA Manufacturers: A Comprehensive Overview
FPGA Manufacturers: A Comprehensive Overview
FPGA for AI (Artificial Intelligence): Ultimate Guide
FPGA for AI (Artificial Intelligence): Ultimate Guide
Get 3 Quotes from Electronic Design Companies
Get 3 Quotes from FPGA Design Companies
Get 3 Quotes from Embedded SW Services
Get 3 Quotes from EMS Companies

Find Design Services

Get IC Prices

Get Price Offers From
  • Electronic Design Services
  • FPGA Design Services
  • Embedded Software Companies
  • PCB Layout Services
  • Printed Circuit Board Manufacturers
  • Design & Manufacturing Services
Welcome New Vendors
  • Spark Product Innovation
  • QBayLogic
  • Fidus Systems
  • nao.design
  • HQ NextPCB
Browse Vendor Directories
  • Electronic Design Companies
  • FPGA Design Companies
  • Embedded Software Services
  • Manufacturing Companies
Featured Vendor

RT-RK

Recent Posts
  • Low Noise Amplifier: Ultimate Guide
  • ASIC Prototyping
  • FPGA Prototyping Services
  • QFN Socket
  • FPGA in Medical and Healthcare
Most Popular Blog Posts
  • The Ultimate Guide to: Variable Gain Amplifier
  • FPGA for AI (Artificial Intelligence): Ultimate Guide
  • PCB Stackup: Ultimate Guide and Examples
  • FPGA Video Processing: Ultimate Guide
  • The Ultimate Guide to Logic Chips

Never miss an update!

Follow us on LinkedIn

Do you need any price
information?

(Electronic design, FPGA design, Embedded SW services, PCB design, Turnkey)

Yes
No
This page is sponsored by
HardwareBee

Copyright 2017-2024, HardwareBee. All rights reserved.

  • About Us
  • Contact
  • Subscribe
  • News
  • Get Free Support
  • Get listed
  • Send a wiki/article
  • Advertise

Follow Us

Be sure to follow our LinkedIn company page where we share our latest updates LinkedIn
Partner with us Partner with us

Design and Manufacturing Services

  • Engineering Design Services
  • Electronic Design and Manufacturing
  • Electronic Product Development
  • Electronic Product Design
  • Electronic Consulting Services
  • Electronic Engineering Companies
  • Electronic Engineering Services
  • Electronic Product Design and Development
  • Electronics Design Services
  • Electronics Design Company
  • Electronic Design Consultants
  • Electronic Design Company
  • FPGA Design Company
  • FPGA Consultant
  • FPGA Design Services UK
  • Electronics Manufacturing services
  • Electronics Manufacturing Companies
  • Electronic Contract Manufacturing Companies
  • Electronic Manufacturing Services Companies
  • EMS Companies Directory
  • Electronic Design Services
  • FPGA Design Services
  • Embedded Software Companies
  • PCB Layout Services
  • Printed Circuit Board Manufacturers
  • Design and Manufacturing Services
X

Don’t miss anything, follow us on LinkedIn

https://www.linkedin.com/company/hardwarebee/

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

3rd Party Cookies

This website uses Google Analytics to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

Additional Cookies

This website uses the following additional cookies:

(List the cookies that you are using on the website here.)

Please enable Strictly Necessary Cookies first so that we can save your preferences!