TA0CCR0 = 32767;
TA0CTL = TASSEL_1 + MC_1 + TACLR;
TA0CCTL0 = CCIE;
请问上面这样配置有没有问题啊? 1秒一次的定时
#pragma vector=TIMER0_A0_VECTOR
__interrupt void TIMER0_A0_ISR(void)
{
;
}
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.
TA的配置是没有问题,中断产生的时间取决于你的时钟源选择,在你的代码中时钟源选择了TASSEL_1,即是ACLK,
你需要确定对你ACLK的配置是否符合。