Skip to content

The watchdog monitors the operation of the system by expecting periodic communication from the software, generally known as servicing or refreshing the watchdog. If this periodic refreshing does not occur, the watchdog resets the system.

License

Notifications You must be signed in to change notification settings

janelia-arduino/Watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watchdog

Library Information

Name
Watchdog
Version
3.0.2
License
BSD
URL
https://github.com/janelia-arduino/Watchdog
Author
Peter Polidoro, Antonio Brewer, Steve Sawtelle
Email
[email protected]

The watchdog monitors the operation of the system by expecting periodic communication from the software, generally known as servicing or refreshing the watchdog. If this periodic refreshing does not occur, the watchdog resets the system. Works with avr, megaavr, and teensy processors.

When the watchdog timer is enabled, a call to the reset instruction is required before the timer expires after the timeout duration, otherwise a watchdog-initiated device reset will occur.

Timeout Durations

Possible timeout durations are 15ms, 30ms, 60ms, 120ms, 250ms, 500ms, 1s, 2s, 4s, and 8s.

Not all devices allow timeout durations.

  • Teensy 4.x does not allow timeout durations below 1s.
  • Other processors do not allow timeout durations of 4s or 8s.

Teensy 4

The watchdog code for the Teensy 4 was written by Antonio Brewer:

https://github.com/tonton81/WDT_T4

Tripped Method

The tripped method was written by Steve Sawtelle.

Unfortunately this method does not work with certain microprocessors and boards, such as the Arduino Mega 2560, Teensy 2.0, and Teensy++ 2.0.

About

The watchdog monitors the operation of the system by expecting periodic communication from the software, generally known as servicing or refreshing the watchdog. If this periodic refreshing does not occur, the watchdog resets the system.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages