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.

定时器



BCSCTL2 |=SELM1;     //MCLK=LFXT2    

TACTL=TASSEL_2+TACLR;   //主系统时钟 清零

   TACCTL0=CCIE;            //CCR0 中断允许

   TACCR0=40000;            //初值

   TACTL|=MC0;            //增计数计数模式

   _EINT();               //开中断

这个程序理应定时0.125us*40000=5ms?可是我测得的结果是50ms 为什么?