Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Hardware Watchdog Timer Vs Software Watchdog Timer

Status
Not open for further replies.

chandu.kurapati

Full Member level 3
Joined
Oct 31, 2013
Messages
186
Helped
5
Reputation
10
Reaction score
5
Trophy points
18
Location
Bengaluru, India
Activity points
1,497
Hi,

I have a better idea about the hardware watchdog timer, but i don't know about the software watchdog timer? what is the importance and where it is useful?

I come across the web, but i didn't found the answer for it. Can any one help me

Thanks & Regards,
Chandu.Kurapati.
 

SunnySkyguy

Advanced Member level 5
Joined
Sep 26, 2007
Messages
6,743
Helped
1,675
Reputation
3,348
Reaction score
1,643
Trophy points
1,413
Location
Richmond Hill, ON, Canada
Activity points
50,728
A wakeup H/W timer is often used to get out of sleep mode.

A timer is also used to count successful operations for over or under-runs over any significant time interval, and if error, check by NMI or hard reset routine.
This can be S/W or Hardware driven to check faults in other routines independent of S/W or H/W being used.

Simplest method is set count periodically then decrement on expected I/O but if reach zero then fault condition reached.
This requires tasks to be periodically pushed onto stack, not simply wait.

We used to call these Sanity or Watchdog Timers.
 

hobbyckts

Advanced Member level 1
Joined
Mar 12, 2015
Messages
481
Helped
88
Reputation
176
Reaction score
85
Trophy points
28
Activity points
2,457
As per my knowledge I think it is implemented in software like as follows

Slave is programmed in such way that has to send some signal (either it can be high to low or low to high) for a pre-determined time (for example once in 10 seconds) to the master. If the master is programmed in such a way that if it doesn't receive the signal then it resets the slave. Same can be repeated in vice versa I guess.
 

andre_teprom

Super Moderator
Staff member
Joined
Nov 7, 2006
Messages
9,181
Helped
1,141
Reputation
2,301
Reaction score
1,116
Trophy points
1,403
Location
Brazil
Activity points
53,330
The problem that I see using the software watchdog is in the case of failure occurrence on the code so that stops the timer operation. Most microcontrolers have watchdog enable configured at the fuse bits, turning difficult to disable it during normal operation.
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top