Previous in Forum: Energy to send an email   Next in Forum: Battery operated LED light
Close
Close
Close
4 comments
Rate Comments: Nested
Active Contributor

Join Date: Aug 2008
Posts: 16

watchdog timer

08/07/2008 8:38 AM

what is watchdog timer ?How it works?

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru
Canada - Member - Our strength is our diversity

Join Date: Jan 2007
Location: Canada
Posts: 1024
Good Answers: 40
#1

Re: watchdog timer

08/07/2008 2:09 PM

It is basically a maintenance chip that monitors the health of the CPU and can reset the CPU if it hangs up. Usually it will capture the contents of the important registers at the time of failure for troubleshooting.

See http://en.wikipedia.org/wiki/Watchdog_timer

__________________
Perfection is a subjective and abstract concept.
Register to Reply
Guru
Philippines - Member - New Member Engineering Fields - Instrumentation Engineering - New Member Engineering Fields - Control Engineering - Who am I?

Join Date: Oct 2006
Location: Northern Mindanao, Philippines
Posts: 2147
Good Answers: 53
#2
In reply to #1

Re: watchdog timer

08/08/2008 8:09 AM

In addition to what techno said, a watchdog timer can also be a simple timer relay that "watches" for the presence of pulses.

Say you have a conveyor that you want to monitor for belt breakage. You put a bolt on one of the rollers and put a proximity sensor on it so that it gives a pulse everytime the roller makes a complete revolution. If the pulses stop but the conveyor motor is still running, you can interpret that to mean that the belt has broken.

In PLCs, the internal watchdog monitors the scan time of the processor. If the scan time exceeds the watchdog setting, the processor will generate a fault and possibly stop processing.

__________________
Miscommunication: when what people heard you say differs from what you said. Make yourself understood.
Register to Reply
2
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#3
In reply to #2

Re: watchdog timer

08/08/2008 8:26 AM

<...In PLCs, the internal watchdog monitors the scan time of the processor. If the scan time exceeds the watchdog setting, the processor will generate a fault and possibly stop processing....>

The processor resets the watchdog timer by flicking an output on/off at regular intervals. If the timer expires, because the processor isn't flicking its output, then the timer-expired contact raises an alarm.

The same principle is used for driver vigilance devices on passenger trains - if the 1st alarm isn't reset before the timer expires then the traction power is cut and the brakes come on. Hard!

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply Good Answer (Score 2)
Commentator

Join Date: Mar 2008
Posts: 78
Good Answers: 2
#4

Re: watchdog timer

08/16/2008 10:23 AM

it doesn't have to be an external circuit, PIC's for instance have an internal watchdog that can be set anywhere between a mS or several seconds.

unless the watchdog is cleared regularly then the chip will reset.

basically stops the processor getting stuck in a loop somewhere if the loop has no clear watchdog command.

Register to Reply Score 1 for Good Answer
Register to Reply 4 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

PWSlack (1); stoney (1); techno (1); Vulcan (1)

Previous in Forum: Energy to send an email   Next in Forum: Battery operated LED light
You might be interested in: Counter and Timer Boards

Advertisement