#include "MSP430x24x.h"
void main(void)
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD; //關(guān)狗
P4DIR = BIT0|BIT1|BIT2|BIT3; //設(shè)置為輸出
P4SEL = 0;
while(1)
{
volatile unsigned int i;
P4OUT ^= 0x0F; //電平翻轉(zhuǎn)
i = 50000; // Delay
do (i--);
while (i != 0);
}
}