What does a watch dog timer do? Why do I have to pet it frenquently? - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

What does a watch dog timer do? Why do I have to pet it frenquently?

AntZAntZ Posts: 1Member
I am programming a switch using a SingleStep and I have to disable the watchdog timer on the board when I am debugging. And when my code is running, I have to pet the dog frequently.

What does exactly a watch dog timer do? What kind of issues I have to pay attention when I am dealing with it?

Thank you!

Comments

  • jeffpostjeffpost Posts: 316Member
    : I am programming a switch using a SingleStep and I have to disable the watchdog timer on the board when I am debugging. And when my code is running, I have to pet the dog frequently.
    :
    : What does exactly a watch dog timer do? What kind of issues I have to pay attention when I am dealing with it?
    :
    :
    The purpose of a watchdog timer is to get the software's attention if it is not functioning properly. By "petting" it at regular intervals, you are telling the system that everything is running smoothly. If it doesn't get "petted", it's because the main control software has gone out to lunch. The watchdog timer code then takes corrective action, although in many cases, the only possible corrective action is to restart the system.


Sign In or Register to comment.