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.

[参考译文] CCS/MSP430FR4133:ADC 结果转换为摄氏度

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/829185/ccs-msp430fr4133-adc-result-conversion-into-celsius-degrees

器件型号:MSP430FR4133
主题中讨论的其他器件:LMT86

工具/软件:Code Composer Studio

我接收到来自 ADC 的答案、这表示从 LMT86温度传感器读取的温度。 使用 driverlib 在10位上设置 ADC:

void configurateadc (){

GPIO_setAsInputPin (GPIO_PORT_P8、GPIO_PIN0);
GPIO_setPeripheralModuleFunctionOutputPin (GPIO_PORT_P8、GPIO_PIN0、GPIO_PRIMARY_MODULE_Function);
ADC_INIT (ADC_base、ADC_SAMPLEHOLDSOURCE_SC、ADC_CLOCKSOURCE_ADCOSC、ADC_CLOCKDIVIDER_1);
ADC_ENABLE (ADC_base);
ADC_setupSamplingTimer (ADC_base、ADC_CYCLEHOLD_4_CYCLLES、ADC_MULTIPLESAMPLESDISABLE);
ADC_setResolution (ADC_base、ADC_resolution_10BIT);
ADC_configureMemory (ADC_base、ADC_INPUT_A8、ADC_VREFPOS_AVCC、ADC_VREFNEG_AVSS);
_delay_cycles (5000);

例如、我收到563、不知道如何以摄氏度的角度更改该值。