#include <msp430G2553.h>
void delay(unsigned int z);
int main(void)
{ WDTCTL = WDTPW + WDTHOLD; // Stop Watchdog Timer
P1DIR |= 0x41; // P1.0,1 and P1.4 outputs
while(1)
{ P1OUT |= 0x01; //0100 0001 P1.1 = 1
delay(100);
P1OUT &= ~0x01; // P1.1 = 0
delay(100);
P1OUT |= 0x40; //0100 0001 P1.1 = 1
delay(100);
P1OUT &= ~0x40; // P1.1 = 0
delay(100);
}
}
void delay(unsigned int z)
{
unsigned int i,j;
for(i=z;i>0;i--)
for(j=100;j>0;j--);
}