#include "msp430g2553.h"
#define uchar unsigned char
#define uint unsigned int
void Delay(uint t)
{
uint x,y;
for(x=t; x>0; x--)
for(y=1000; y>0; y--);
}
void main(void)
{
WDTCTL = WDTPW + WDTHOLD;
P1DIR |= BIT0;
P1OUT |= BIT0;
while(1)
{
Delay(20000);
Delay(20000);
P1OUT ^= BIT0;
}
} |