#include <msp430.h> int main(void) { unsigned int i; WDTCTL=WDTPW+WDTHOLD; P1DIR |= BIT0; P1OUT |= BIT0; while(1) { for(i=50000;i>0;i--); P1OUT ^= BIT0; } }
#include <msp430.h> int main(void) { unsigned int i; WDTCTL=WDTPW+WDTHOLD; P1DIR |= BIT0; P1OUT |= BIT0; while(1) { for(i=50000;i>0;i--); P1OUT ^= BIT0; } }