目前使用28027开发一款产品,但是在一个高频磁场的环境,使用晶振有时候会不稳定,所以就想使用內振代替晶振,请问有哪些需要注意的地方呢,比如是否需要检测起振情况,是否需要精度修正等?
另外,这个函数好像是跟內振有关的,是干什么用的呢,是否需要调用处理呢?
// This function uses the temperature sensor sample reading to perform internal oscillator 1 compensation with
// reference values stored in OTP.
void Osc1Comp (int16 sensorSample)
{
int16 compOscFineTrim;
EALLOW;
compOscFineTrim = ((sensorSample - getRefTempOffset())*(int32)getOsc1FineTrimSlope()
+ OSC_POSTRIM_OFF + FP_ROUND )/FP_SCALE + getOsc1FineTrimOffset() - OSC_POSTRIM;
SysCtrlRegs.INTOSC1TRIM.all = GetOscTrimValue(getOsc1CoarseTrim(), compOscFineTrim);
EDIS;
}