SLAAEN0 September   2024 MSPM0L1227 , MSPM0L1228 , MSPM0L1228-Q1 , MSPM0L2227 , MSPM0L2228 , MSPM0L2228-Q1

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Low-Frequency Subsystem Introduction
    1. 2.1 Resetting LFSS IP Using VBAT
    2. 2.2 Power Domain Supply Detection
      1. 2.2.1 Start-Up Sequences
      2. 2.2.2 LFSS IP Behavior
    3. 2.3 LFXT, LFOSC
    4. 2.4 Independent Watchdog Timer (IWDT)
    5. 2.5 Tamper I/O
      1. 2.5.1 IOMUX Mode
      2. 2.5.2 Tamper Mode
        1. 2.5.2.1 Tamper Event Detection
        2. 2.5.2.2 Timestamp Event Output
        3. 2.5.2.3 Heatbeat Generator
    6. 2.6 Scatchpad Memory (SPM)
    7. 2.7 Real-Time Clock (RTC)
    8. 2.8 VBAT Charging Mode
  6. 3Application Examples
    1. 3.1 Tamper I/O Heartbeat Example
    2. 3.2 RTC Tamper I/O Timestamp Event Example
    3. 3.3 Supercapacitor Charging Example
    4. 3.4 LFOSC Transition Back to LFXT Example
    5. 3.5 RTC_A Calibration
      1. 3.5.1 Peripheral ADC 12
      2. 3.5.2 RTC_A

Peripheral ADC 12

Together with the internal temperature sensor of the MSP, the ADC is used to measure the device temperature. This is done with the following process:

  1. Compute the trim voltage using the temperature coefficient (TSC), factory trim temperature (TSTRIM), and unit specific-single point trim value (in register: TEMP_SENSE0)
  2. Sample the internal temperature sensor
  3. Convert the raw ADC value to a voltage
  4. Approximate the device temperature using Equation 5:
Equation 5. T S a m p l e = 1 T S C × A D C C O D E - T E M P S E N S E 0 . D A T A + T S T R I M

TSC and TSTRIM can be found within the device data sheet in the Specifications section. TEMPSENSE0 is located in the factory constants section of memory. The temperature sensor is the input on a device-dependent ADC channel and the raw ADC value is stored in ADC Conversion Memory 0. The single-calibration value is the ADC result of the temperature sensor being measured with a 1.4V internal reference voltage.