90
WDT+
WDT+ is a 15/16-bit watchdog timer. It is mainly intended to prevent unanticipated loops or stuck up
conditions due to malfunctions or firmware bugs. The concept behind any watchdog timer is to
regularly refresh a counter so that the count never reaches a predefined limit. If due to any reason
this limit is exceeded, a reset is issued, causing the host micro to start over again.
WDT+ can additional be used as an interval timer just like other timers if watchdog timer functionality
is not needed. We can, then, use WDT+ for time-base generations.
WDT+ is password protected and so a wrong password causes it to fail and reset immediately. This is
the red box in the diagram above. Whenever we need to change anything related to WDT+, we have
to enter the correct password which is 0x5A00. WDT+ consists of a 16-bit counter (green box) but we
don’t have access to it. The purple region consists of WDT options. The red and the purple boxes make
up Watchdog Control (WDTCTL) register and this is what we are only allowed to code.