This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

关于msp430fr5739定时器定时时间的问题

Other Parts Discussed in Thread: MSP-EXP430FR5739

如下,很简单的程序,默认情况下ACLK为32.768K啊,所以中断时间明显为1s,为什么我在led上看着明暗反转时间明明超过一秒,问题有点傻但真的让我困扰很大,打扰了

#include "in430.h"
#include "io430.h"

int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;

//定时器配置
TA0CTL=TASSEL0+TACLR;
TA0CCTL0=CCIE;
TA0CCR0=32768;
P1DIR|=BIT0;
TA0CTL|=MC0;
_EINT();
_BIS_SR(LPM3_bits);
//return 0;
}

//time_A中断服务程序
#pragma vector=TIMER0_A0_VECTOR
__interrupt void Timer_A(void)
{
P1OUT^=BIT0;
}