Let's Begin!
Initialize the watchdog timer to OFF state using the required password for the watchdog timer
(It helps to keep check of infinite loops , keeping the processor safe).
#include <msp430f5529.h> // or #include <msp430.h>
/**
* main.c
*/
int main(void)
{
WDTCTL = WDTPW | WDTHOLD; // The HOLD bit is 1
return 0;
}
WDTCTL is the watch dog timer control register.
One of the Bit is WDTHOLD , this can be accessed through a specific password value WDTPW.
From WDTHOLD one can control ON and OFF of a Watchdog timer.
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.