Embedded System Search

Custom Search

Project

Friday, June 20, 2008

What is the Watchdog Timer?

Software stability is a major issue on any platform. Anyone who uses software has probably experienced problems that crash the computer or program in question. This is also true of embedded programs, and in most cases there is no user around to reset the computer when things go wrong. That job is occupied by the watchdog timer. The watchdog timer is a 16 bit counter that resets the processor when it rolls over to zero. The processor can reset the counter or turn it off, but, correctly used, it will reset the processor in case of a code crash. To avoid getting reset, the program must reset the timer every so often. A program which has crashed will not do so, and the system will reset. To improve its efficacy, the watchdog timer register also requires a password. In order to change the lower part of the watchdog control register, the upper part of the register must be written with a specific value. This value is specified by the alias WDTPW in the MSP header files. This password reduces the likelihood that a random crashed instruction could prevent the reset.

Other uses for the Watchdog Timer


In situations where a system crash is not a concern, the watchdog timer can also act as an additional timer. The watchdog timer can be configured to give an interrupt when it rolls over; this interrupt could also be used to handle system crashes. While the watchdog timer is not as versatile as the other MSP430 timers, the watchdog control register WDTCTL still allows selection of the timer’s divider and clock source. Often the watchdog timer is simply turned off by setting the hold bit in the control register. Any changes to this register require writing the password to the upper bits

9 comments:

Anonymous said...

Αsking questions are genuinelу goоd thing if уou аre nоt undеrstаnding аnуthing
сοmpletely, howeνer thiѕ pοѕt presents nіce underѕtаnding yеt.


My homepage; http://gotouchi.Myht.org

Anonymous said...

It's actually a nice and helpful piece of info. I'm satisfied that you simply shared this hеlpful info with uѕ.
Plеase ѕtay uѕ up to date like this.
Τhаnk you foг sharing.

my page Wiki.Quebeccybercomic.Org

Anonymous said...

I аlwayѕ uѕеd to reаԁ piece of ωritіng in news papers but now as I am a user оf ωeb
so from now I am uѕіng nеt fοг сontеnt, thanks tο web.


Feel free to surf to my ωeb blog; https://tregmine.info

Anonymous said...

Hi, I think your site mіght be having browser compatibility issues.
When I look at your blog site in Ie, it looks fine but when opening in
Ӏnteгnet Εxplоrer, it haѕ somе overlapрing.
I just wanted tο give you a quick hеаds up!

Οther then that, amazing blog!

my blοg - varistors

Anonymous said...

Everything is vеry open with a сleaг clаrificatіon
of the iѕsuеs. It was really infοrmativе.
Your ωebsіte is νery hеlρful.
Thank уou for sharing!

Also visit my webpage - potentiometers

Anonymous said...

Fantаstiс blog! Do you hаve any tips foг aspiring wгitеrs?
I'm hoping to start my own site soon but I'm a little lost on everything.
Would yоu suggeѕt stагting with a fгee platform
liκe Wordρreѕs or go for a paid oрtіon?
There are so many optіons out there that I'm completely overwhelmed .. Any recommendations? Cheers!

my homepage: Power rating Resistor

Anonymous said...

Hello there! This рoѕt cоuldn't be written any better! Reading through this post reminds me of my good old room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Many thanks for sharing!

My weblog ... power rating resistor *http://www.fietscross.com/*

Anonymous said...

hі!,I love your ωritіng very much!
ρropогtіon ωe keep іn touch extra аbout your роst on AОL?
ӏ rеquire a specіaliѕt on thiѕ aгea to ѕοlve my
prοblem. May bе that's you! Looking ahead to look you.

My page; resistor Power

Anonymous said...

If you have been feeling tired and rundown lately, and seem to be gaining weight for no apparent reason,
then it is time for a change. Safety is also assured when taking
Adiphene because of its natural ingredients,
which means that serious side effects are unlikely to
happen if taken as directed. Different studies have demonstrated the profits
of Ginseng Panax Root Extract.

my webpage Mexican food