Welcome to our site! EDAboard.com is an international Electronics 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.
I am using avr at90s8515and z8 encore.
I know what is watch dog, but I don´t know how to use it in my programs. I would like to see some examples.
thanks
Plz be carefull with watchdogs!!
If you fail to "feed" the WD at regular times (for example due to a a function wich takes longer to execute than the WD refresh rate), your device will reset without warnning even the processor is not "frozen"
Indded, for example if you are using floating point routines from a C compiler, it's verry hard to simulate the amount of time taken by the routine for all cases.
The result will be a unexpected reset of your project in the midle of some important calculation!!!
This will give an verry bad impresion to the end user!!
It is exactly for that reason that I recommend never ever use watchdog timers.
If the processor hangs,it is a piece of c*ap.
Chuck it and use a processor that does not hang.
Imagine your pc processor hangs every now and again?
While you are in the middle of some work,suddenly it starts to reboot?
You cannot make products based on processors that hang sometimes.
If correctly implemented a hardware watchdog is a valuable asset to a microcontroller based design.
Companies such as Bosch, Motorola and Ford will request the use of a watchdog within their deisgns, especially in the automotive sector.
Bad implementation is the usual cause of watchdog problems.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.