TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F280049: 280049的内部结点温度检测传感器的AD值与温度值的对应关系。

Part Number:TMS320F280049Other Parts Discussed in Thread:C2000WARE

280049的内部结点温度检测传感器的AD值与温度值的对应关系。资料上没找到。AD供电是3.3V的。

Susan Yang:

To convert the temperature sensor reading into a temperature, pass the temperature sensor reading to the GetTemperatureC() function in adc.h.

C2000Ware\driverlib\f28004x\driverlib

//*****************************************************************************
//
//! Converts temperature from sensor reading to degrees C
//!
//! \param tempResult is the raw ADC A conversion result from the temp sensor.
//! \param vref is the reference voltage being used (for example 3.3 for 3.3V).
//!
//! This function converts temperature from temp sensor reading to degrees C.
//! Temp sensor values in production test are derived with 2.5V reference.
//! The \b vref argument in the function is used to scale the temp sensor
//! reading accordingly if temp sensor value is read at a different VREF
//! setting.
//!
//! \note Only external reference mode is supported for the temperature sensor.
//! This function does not set the reference mode. Reference mode can be set
//! using ADC_setVREF().
//!
//! \return Returns the temperature sensor reading converted to degrees C.
//
//*****************************************************************************
static inline int16_t
ADC_getTemperatureC(uint16_t tempResult, float32_t vref)
{float32_t temp;//// Read temp sensor slope and offset locations from OTP and convert//temp = (float32_t)tempResult * (vref / 2.5F);return((int16_t)((((int32_t)temp - ADC_EXT_REF_TSOFFSET) * 4096) /ADC_EXT_REF_TSSLOPE));
}

,

user467873:

谢谢。

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F280049: 280049的内部结点温度检测传感器的AD值与温度值的对应关系。
分享到: 更多 (0)

© 2026 TI中文支持网   网站地图 鲁ICP备2022002796号-1