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.

[参考译文] TMS320F28027F:内部温度传感器读取更多信息

Guru**** 2611705 points
Other Parts Discussed in Thread: TMS320F28027F, CONTROLSUITE

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/691175/tms320f28027f-internal-temperature-sensor-reading-more

器件型号:TMS320F28027F

您好!

我使用的是 tms320f28027f、并尝试使用内部温度传感器。

我阅读了应用手册和数据表、并将公式从 C:\ti\controlSUITE\device_support\f2802x\v230\F2802x_examples_structs\adc_temp_sensor_conv 导入到我的项目中。

但我对模块有问题。

结果具有较大的偏移。 我认为结果是2倍或类似的结果。

有人可以提供帮助?

谢谢

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    函数为:

    int16_t ADC_getTemperatureC (int16_t sensorSample)

    返回((sensorSample - ADC_getTempOffset ())*(Int32_t) ADC_getTempSlope ()+ ADC_FP_ROUND + ADC_Kelvin_off)/ADC_FP_SCALE - ADC_Kelvin;
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    程序运行后、您是否可以记下 degK 和 degC 变量的值? 我假设您的实验室温度为~30摄氏度、如果不是、请告知我。

    该示例通常很可靠、因为温度传感器连接是自包含的、不受不同 PCB 设计的外部负载的影响。 您能否分享正在使用的 PCB、例如 LaunchPad、控制卡、定制 PCB 等

    最棒的
    Matthew