程序如下,
/*
* main.c
*/
int main(void) {
WDTCTL = WDTPW | WDTHOLD; // Stop watchdog timer
PM5CTL0 &= ~LOCKLPM5;
P1SEL1=0x00;
P1SEL0=0x00;
P1DIR=0xFF;
while(1)
{
P1OUT|=BIT3;
__delay_cycles(8000000);
P1OUT&=BIT3;
__delay_cycles(8000000);
P1OUT|=BIT4;
__delay_cycles(8000000);
P1OUT&=BIT4;
__delay_cycles(8000000);
P1OUT|=BIT5;
__delay_cycles(8000000);
P1OUT&=BIT5;
__delay_cycles(8000000);
}
return 0;
}