An independent timer module usually incorporated into the same chip as a uProcessor which resets the processor after a certain length of time. The idea is that during usual operation the code running should always be able to reset the watchdog timer before the watchdog resets the processor. If the processor gets into a bad state or the code is corrupted it will not reset the watchdog and in turn will be reset back to normal operation.
Questions tagged [watchdog]
113 questions
37
votes
1 answer
Why does my AVR reset when I call wdt_disable() to try to turn the watchdog timer off?
I am having a problem where executing a disable watchdog sequence on an AVR ATtiny84A is actually resetting the chip even though the timer should have plenty of time left on it. This happens inconsistently and when running the same code on many…

bigjosh
- 9,888
- 29
- 48
22
votes
7 answers
Necessity of an external watchdog timer
What is the need for an external watchdog timer for a microcontroller?
Most of the microcontrollers are designed with an internal watchdog timer. However, in some of the circuits they are using an external watchdog timer (such as PIC16F1824).

Photon001
- 824
- 6
- 17
20
votes
3 answers
Use AVR watchdog like normal ISR
I'm trying to wrap my head around the watchdog timer on the ATtinyX5 series. Things I've read made it seem like you could use it for making the program do something specific ever N seconds, but never really showed how. Others made it seem like it…

Adam Haile
- 1,603
- 5
- 31
- 50
19
votes
5 answers
Independent watchdog (IWDG) or Window watchdog (WWDG)?
I'm still searching to find an answer for this question:
Since the STM32 MCUs already have a perfect watchdog (I mean the Window watchdog (WWDG)), why is there also a simple watchdog (Independent watchdog (IWDG)) ?
I found this page that has…

Roh
- 4,598
- 6
- 41
- 86
8
votes
3 answers
Which of these approaches for a watchdog timer?
I recently learned about watchdog timers, and am trying to implement one for my circuit for the purpose of resetting my (AVR) microcontroller if it hangs (i.e., doesn't respond to the watchdog).
Based on some research, it appears to me that there…

boardbite
- 4,892
- 11
- 47
- 73
7
votes
2 answers
Windowed watchdog timer
Can someone please explain how windowed watchdog timer is different from the normal watchdog timer? When is windowed watchdog timer prefferred over normal watchdog timer?

xyz101
- 303
- 1
- 5
- 13
7
votes
2 answers
Microcontroller's watchdog
Can anyone explain a little more about watchdogs, specifically in the circuitry level?
If there is some kind of problem in the chip, how can I guarantee that it will be kept running? It is implemented in a different silicon and later attached to the…

RMAAlmeida
- 1,997
- 15
- 24
6
votes
2 answers
Low power, cheap, long timeout, watchdog circuit
I need a circuit to act as a watchdog to a micro (which is not powered (instead of in a sleep mode)most of the time).
it needs to be low power (< ~4uA) and non-programmable. So no I2C RTCs or MCUs.
I've looked at RC timers combined with a comparator…

Mark B
- 516
- 2
- 8
6
votes
2 answers
Does the internal 8Mhz oscillator in an ATTINY run even if no clocks are connected to it?
If I set up the fuses on an ATTINY so that the system clock uses the internal 128Khz oscillator (sometimes called the "Watchdog oscillator"), does the internal 8Mhz oscillator still run?
It does not seem to say either way in the data sheet, but I…

bigjosh
- 9,888
- 29
- 48
6
votes
4 answers
How often do AVR's actually glitch and need a watch-dog reset in the real-world?
Have you ever seen an otherwise happy AVR spontaneously glitch and require a reset?
Assuming:
a nice stead power supply that stays inside the specified range
a correctly sized decoupling cap directly between Vcc and ground
normal (not too noisy)…

bigjosh
- 9,888
- 29
- 48
6
votes
3 answers
ARM watchdog reset
I have an MP3 development board I picked up from sparkfun that runs off the LPC2148 ARM processor. In looking through the code, I see a function to force a watchdog reset. My question is, how do you figure out what values to feed to the watchdog…
brokenlcd
4
votes
2 answers
Arduino w/ Atmega328: can't clear the watchdog
I'm using the onboard software watchdog facility of an Atmega328 like documented here.
My purpose is to limit to 2 seconds the execution of a portion of code that could lead to endless computation.
This is the pseudo-code scheme:
enable watchdog (2…

etuardu
- 397
- 3
- 7
- 14
4
votes
2 answers
How to debug reset caused by WDTCTL security key violation in MSP430F1611?
I'm working on a sensor project which uses TelosB based on MSP430F1611 running TinyOS. My program is reset some time after boot up. After the PUC reset, IFG1 is found with WDTIFG bit set, indicating the watchdog timer initiates the reset. This can…

sinoTrinity
- 201
- 2
- 6
4
votes
2 answers
STM32F4: WWDG interrupt fires as soon as it's enabled
I'm doing some coding on an STM32F411 board, used the CubeMX & HAL Libraries for laziness.
I'm trying to get the windowed watchdog (WWDG) up & running, and doing the very basic version (non interrupting) works as expected using this sequence of…

John U
- 7,041
- 2
- 21
- 34
4
votes
2 answers
Low power strategy for dealing with spontainious bit flips durring sleep on AVR 8-bit?
I am designing a ATTINY-based circuit that is intended to run unattended for very long periods of time on a very small battery. The device spends almost all of its time in deep sleep, and only wakes briefly in response to a rare pin change…

bigjosh
- 9,888
- 29
- 48