voidmain() { //Stopwatchdogtimertopreventtimeoutreset WDTCTL=WDTPW+WDTHOLD; BCSCTL3|=LFXT1S_2;//SetLFXT1为vol时钟即12kHZ CCTL0|=CCIE;//设置捕获/比较控制寄存器,CCIE=0x0010,使能捕获比较中断