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

[PIC] comparison of watchdog timer and hardware timer

Status
Not open for further replies.

xinhui

Junior Member level 1
Joined
Jun 2, 2015
Messages
17
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
MALAYSIA
Activity points
143
hi... can someone help me solve this problem? now i m confused about that. What is the difference between watchdog timer and hardware timer in theory?
 

bigdogguru

Administrator
Joined
Mar 12, 2010
Messages
9,831
Helped
2,348
Reputation
4,690
Reaction score
2,273
Trophy points
1,413
Location
Southwest, USA
Activity points
62,485
As the name implies, a watchdog timer essentially ensures the embedded system does not perpetually remain in state of software or hardware fault.

It accomplishes this task by requiring it be serviced/reset periodically, before its timer expires, otherwise known as "kicking the dog."

If the watchdog timer does expire, the entire system is then reset, which in turn, at least momentarily, removes the system from the state of software or hardware fault.



On the other hand, a standard hardware timer is typically employed to accomplish a myriad of other system tasks.

It too can be loaded with a predetermined value which when incremented by a predetermined clock source, eventual rolls over to zero, raising a flag.

The flag can in turn be polled or configured to trigger an interrupt which in turn can run an interrupt service routine (ISR) to perform a specific periodic task.

A standard hardware timer can often be utilized to count the occurrence of a specific event or record the duration of time between the occurrence of events.



There are other features/modules which utilize a standard hardware timer and these vary widely from one microcontroller to another, therefore you will need to examine the datasheet of the microcontroller you are considering incorporating into your design.


BigDog
 
  • Like
Reactions: xinhui

    xinhui

    points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top