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.

LP-MSPM0G3507: Regarding temperature sensors

Part Number: LP-MSPM0G3507

Tool/software:

Hello.

Could you please tell me about the temperature sensor?

I was checking the SDK sample program at the URL below and found a part where the comments and the program did not match.

dev.ti.com/.../nodeContent

/*
* Convert TEMP_SENSE0 result to equivalent voltage:
* Vtrim = (ADC_VREF_VOLTAGE*(TEMP_SENSE0 -0.5))/(2^12)
*/

qVTrim = _IQ15div(_IQ15mpy((_IQ15(DL_SYSCTL_getTempCalibrationConstant()) -
_IQ15(0.5)), _IQ15(ADC_VREF_VOLTAGE)), ((uint32_t)(1) << 27));

  • Is 1<<27 correct?

**Attention** This is a public forum