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.
工具/软件:Code Composer Studio
在下面的代码中、是这里的传感器样本、它引用 OTP 中寄存器的名称、或者只是为从 OTP 获取数据而创建的变量参考
// GetTemperatureC -此函数使用 OTP 中存储到的参考数据
//将原始温度传感器读数转换为摄氏度
//
Int16 GetTemperatureC (Int16 sensorSample)
{
sensorSample =(Int16)((tempSensor_scaleFactor/2.5)*(sensorSample);
返回(((sensorSample - tempSensor_tempOffset)* tempSensor_tempSlope +
fp_round + Kelvin_off)/fp_scale - Kelvin);
}
[引用 user="Surya dhaneshwar lingam"]保留的 PIE_ISR 很少,它们是如何使用的?
这是为了 TI 内部目的、而不是为了客户。