|
#include
void main()
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;// FLL_CTL0|=XCAP14PF;
P1DIR |=BIT2;
P1SEL |=BIT2;
TACTL =MC_1+TASSEL_2+TACLR;//增计数模式 ACLK 清除定时器A
TACCR0=524-1;
TACCTL1=OUTMOD_7; // set/reset模式
TACCR1=393;
TACCTL2=OUTMOD_7;
TACCR1=131;
TACTL|=MC_1 ;
while(1)
{
LPM0;
}
}
|
|