//**********modify your subroutine as below**************//
#include <msp430x14x.h>
#define uchar unsigned char
//#define uint unsigned int
void main( void )
{
WDTCTL = WDT_ADLY_1000;
IE1 |= WDTIE;
P2DIR |=BIT0+BIT1+BIT2+BIT3;
P2OUT|=0xFF;
_EINT();
while(1)
{
_NOP();
}
}
#pragma vector = WDT_VECTOR
__interrupt void itemp(void)
{
uchar temp=0x01, static uchar i=0;
temp<<=1;
P2OUT&=~temp;
i++;
if (i==4) i=0;
} |