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.

请教 1秒定时问题



ACLK=32768

TA0CCTL0 = CCIE;
TA0CTL = TASSEL__ACLK | MC__UP | TACLR; // ACLK, contmode, clear TAR
TA0CCR0 = 32768;

#pragma vector=TIMER0_A0_VECTOR
__interrupt void TIMER0_A0_ISR(void)

用上面的方式TA0CCR0 = 32768;这个值是不是应该写成32769啊?

0.25秒是8192,还是8193呢? 谢谢~