void main(void) { WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer P1DIR |= BIT0; // configure P1.0 as output volatile unsigned int i; // volatile to prevent optimization while(1) { P1OUT ^= BIT0; // toggle P1.0 __delay_cycles(1000000); // delay } }