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.

MSP430F413定时时间如何计算呢?

我尝试使用MSP430,以下是定时器BT初始化程序:

  /* basic timer init 2ms interrupt */

 FLL_CTL0 |= XCAP18PF;          // Set load cap for 32k xtal

 BTCTL = BTSSEL + BT_fCLK2_DIV256;     // SMCLK/256

 IE2 |= BTIE;                          // Enable BT interrupt

 _BIS_SR(GIE);  

 //_BIS_SR(LPM0_bits + GIE);           // Enter LPM0, enable interrupts

我的目的是想得到1ms的定时中断,但不知该如何设置?我晶振使用的是32.768khz,并且直接接在XIN-XOUT引脚上的。请专家帮我看看。