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.
您好!
MSP430G2332 DCO运行在8MHz的频率下,精度大概是多少?我们需要1分钟的定时,和2分钟的定时 误差在1~2秒内 可以接受。
是否需要 专门做DCO的校准?
请教一下,DCO校正就是:
//1Mhz
if (CALBC1_1MHZ==0xFF) // If calibration constants erased
{
while(1); // do not load, trap CPU!!
}
DCOCTL = 0; // Select lowest DCOx and MODx settings
BCSCTL1 = CALBC1_1MHZ; // Set range
DCOCTL = CALDCO_1MHZ; // Set DCO step + modulation */
对吗?
msp430 user 贵的里面24.2.1 TLV structure 有讲到:
CLR.B &DCOCTL
MOV.B &CALBC1_1MHZ,&BSCTL1
MOV.B &CALDO_1MHZ, &DCOCTL
这段汇编跟上面的C代码应该是一样的。
CCS里面还有一个例子,是用于自己校准DCO,当片内的DCO常数被擦掉时,我们调用这个函数的,