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.

MSP430 FR5969 launchpad



Hi,

I am using my own designed PT1000 sensor booster pack on the FR5969 launchpad. I was trying to utilize the GUI to read those values on the computer. I changed the code to use the correct ADC input pin. Now I wonder how those sensor calibration constants work. Is there a formula behind them or in the GUI that does the temperature calculations? 


Thanks

  • > I changed the code to use the correct ADC input pin. Now I wonder how those sensor calibration constants work.

    Changed what code? Is there some example code that you started with? If so, provide a link so somebody can look at it and understand what you are doing. Also, where does this GUI on the PC come from?
  • It's the one from the software example that comes with the launchpad (Out of box demo)



    // Send Temp Sensor Calibration Data
    EUSCI_A_UART_transmitData(EUSCI_A0_BASE, CAL_ADC_12T30_H);
    EUSCI_A_UART_transmitData(EUSCI_A0_BASE, CAL_ADC_12T30_L);
    
    __delay_cycles(500000);
    
    EUSCI_A_UART_transmitData(EUSCI_A0_BASE, CAL_ADC_12T85_H);
    EUSCI_A_UART_transmitData(EUSCI_A0_BASE, CAL_ADC_12T85_L);
    
    -----
    
    #define CAL_ADC_12T30_L *(int8_t *)(0x1A1E) // Temperature Sensor Calibration-30 C 2.0V ref
    #define CAL_ADC_12T30_H *(int8_t *)(0x1A1F)
    #define CAL_ADC_12T85_L *(int8_t *)(0x1A20) // Temperature Sensor Calibration-85 C 2.0V ref
    #define CAL_ADC_12T85_H *(int8_t *)(0x1A21)

    That is the important part of the sample code. I don't understand the values of those constants.

  • Those constants are stored inside the device (in the TLV structure) and are unique to each chip. They are the calibration constants that are determined during device manufacture and are used to compensate the A/D readings.

    They are documented in the User's Guide.

**Attention** This is a public forum