Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
finst said:what is WDT on pic microcontroller?
give some application examples
Nigel Goodwin said:finst said:what is WDT on pic microcontroller?
give some application examples
The original use of a WDT is to reset the device in case it 'locks up', you include CLRWDT instructions at regular intervals through out your program, which must occur more often than the WDT time out interval.
If the program crashes, or gets stuck in an endless loop, the CLRWDT instructions won't get executed - so the WDT then resets the chip (this obviously requires no CLRWDT instructions in the endless loop it's stuck in, you need to use them carefully).
It's also commonly used to wake a PIC from sleep, this extends battery life considerably - wake up, check what it needs to, go back to sleep again. As the WDT is just a free running oscillator it's not very accurate, so you can't use it for timing purposes - but one interesting application (in a MicroChip application note) is using the WDT to measure temperature, it's oscillator is temperature dependent, so it can be used to measure temperature changes.