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.

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

Part Number: TMS320F280049
Other Parts Discussed in Thread: C2000WARE

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

  • 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));
    }