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.

28069内置温度传感器问题



你好:

        我在测试TI提供的温度转换程序,

int16 GetTemperatureC(int16 sensorSample)
{
return ((sensorSample - getTempOffset())*(int32)getTempSlope() + FP_ROUND + KELVIN_OFF)/FP_SCALE - KELVIN;
}

在线运行的汇编如下图

在访问

#define getTempSlope() (*(int (*)(void))0x3D7E82)()
//ADC code corresponding to temperature sensor output at 0 deg. C
#define getTempOffset() (*(int (*)(void))0x3D7E85)()

这两个地址的时候程序跑到了ITRAP1中了,请问这个是什么原因呢?

谢谢。