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.

F28M35H52C: F28M35x 片内温度如何换算?

Part Number: F28M35H52C


采用ADC,取得内部温度传感器的AD电压值后,怎么换算成真实的温度值?

按手册上的方法,无法获得TempSensorOffse和TempSensorSlope。

//Convert raw temperature sensor output to a temperature (i.e. degC)

DegreesC = (sensorSample - TempSensorOffset) * TempSensorSlope;

FortheF28M35x,callthebelowfactorystoredslopeandoffsetgetfunctions:

//Slopeoftemperaturesensor(deg.C/ADCcode,fixedptQ15format)

#definegetTempSlope()(*(int(*)(void))0x240239)()

//ADCcodecorrespondingtotemperaturesensoroutputat0-degreesC

#definegetTempOffset()(*(int(*)(void))0x24023A)()