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/UCD3138A64: Code to access the internal temperature sensor.

Part Number: UCD3138A64

Tool/software: Code Composer Studio

Hello,

I are trying to access the internal temperature sensor of UCD3138A64  at channel 15 on ADC12 but we are not sure the training labs provide us with the adequate code we need for accessing the same. I need help with the programming of the internal temperature sensor. I have searched all the training videos and the datasheet too. It would be great if you could guide us about the same.

  • Accessing the internal temperature sensor is very simple. Just put a 15 into the ADC Sequence Select register where you want the temperature reading to appear in the ADC result registers. Also make sure that the MAX_CONV value is big enough to get to whatever you maximum sequence number is. P
  • .We correctly configured the registers as per mentioned.The temperature sensor result is checked on the ADCRESULT0 register at the memory location 0014001C , C51 was the value displayed at the ADCRESULT0

    register

    As per the given data, the temperature value C51 corresponds to 2.5mv which is out of range of the given voltage range of the sensor. So, this proves that the result calculated is incorrect. How to correctly configure and calibrate the temperature sensor? 

  • I see that Yitzhak has answered your question on a different post, so I will mark this one as resolved.