Close

INSIGHTS

A project log for MSP430F5529 Interrupts, Timer, and 60 second Count

Using MSP430 to have a Seconds Counter with the help of inbuilt TIMER-A and Hardware interrupts to keep track on number of counts.

adi-vivekAdi Vivek 12/11/2018 at 19:390 Comments

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