Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 236829

Forum Post: MSPM0G1105: ADC ref voltage for internal temperature trim voltage?

$
0
0
Part Number: MSPM0G1105 Tool/software: hi Expert, from example code below, the ADC Vref is 3.3V. https://dev.ti.com/tirex/explore/node?node=A__AMc1FKI2xb03oOLrEYYLng__MSPM0-SDK__a3PaaoK__LATEST Vtrim = (ADC_VREF_VOLTAGE*(TEMP_SENSE0 -0.5))/(2^12) but from datasheet, it shows 1.4v. This calibration value represents the ADC conversion result (in ADC code format) corresponding to the temperature sensor being measured in 12-bit mode with the 1.4-V internal VREF at the factory trim temperature (TSTRIM). which one is correct or i miss something? when the vdd is 2.5V, I should change below, right? #define ADC_VREF_VOLTAGE (2.5f) Vtrim = (3.3*(TEMP_SENSE0 -0.5))/(2^12) Also, there is ADC VDDA setting in sysconifg. Should I change below to 2.5? BR, frank

Viewing all articles
Browse latest Browse all 236829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>