Deeper Dive into Using the MSP430

Let’s go back to looking the First Project we created and ran in Chapter 2.

 
#include <msp430.h>
int i = 0;
void main()
{
    WDTCTL = WDTPW + WDTHOLD; // Stop watchdog timer
    P1DIR |= 0x01;
    while(1)
    {
        P1OUT ^= 0x01;
        for(i = 0; i < 20000; i++);
    }
}

SUBSCRIBE

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Related Articles