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.

TMS570LC43x problems using Temp.Sensor 1

Other Parts Discussed in Thread: LAUNCHXL2-570LC43, TMS570LC4357, HALCOGEN, TMP006

Hi Guys,


i have a Problem. I am kind of new to the programming world.

My goal is to read the current temperature from the Temp.Sensor 1 on my TI Launchpad LAUNCHXL2-570LC43 and send it to my PC (afterwards i want to send this data over the SPI bus to another controller from telit to upload it with an LTE Module to the internet). But first step by step. I need to read the current data from the temp. sensor and send it to my computer.
On the side i use the (USB to TTL- converter Module ,CP2102).

I am using HALCo Gen and CCS and i want to get the output in the in CCS integrated Terminal (for the first step).

My Launchpad is connected over the USB to my computer.

I know that this must be an analog sensor so i have to go over the ADC to get some data.

In HALCo Gen i made up the settings for ADC1 and for later usage SCI3. On "Special Pin muxing" i enabled the temp.sensor1.

For ADC1 i enabled PIN 31 because in the datasheet on page 320 i found that it should be on PIN31.

In CCS i just tried to make it work after following tutorial, by editing it for my µC:

But when i want to build the project i get an error for sciSend that the scilinREG is not defined.

or how can i select and configure the temp. sensor right to receive data like on page 320:

AD1CHNSEL(31) =1
PINMMR173(16) = 0
PinMMR173(17) = 1

Maybe you can help me with finding all the information in the datasheets and what i am doing wrong that i can learn from it a lot.

Thank you guys a lot in advance.


2480.Temp_Sensor.zip

  • Are you trying to use the internal temperature sensor on the TMS570LC4357? Remember that this sensor will give you the junction temperature of the device, not the ambient temperature. Also, most launchpads were made with TMX silicon that does not have the calibration data necessary for using these internal temperature sensors. There is more information In this application note: SPNA216

  • Hello Bob,

    When i look on the launchpad there is written "temp.sensor" in the right corner above the ethernet Plug In.
    i want to use this launchpad to measure the ambient temperature, yes.
    so it then somehow possible to measure this with the onboard temp.sensor? or do i have to buy an external sensor?

    But anyway, can you help me to get the settings and configurations of the onboard sensor to my laptop?

    Best regards
    Markus

  • Markus,

    That was supposed to be a temp sensor but someone (me) got the footprint wrong so we populated with a tiny trimpot instead.
    The idea is just to have something to generate an analog input for ADC examples. If you want an actual temp sensor though you need to add one on a booster pack.
  • Hey Anthony,

    Ok so basically its just a potentiometer not a temp. sensor, right?

    How can i generate there analog input to send it to my laptop or can i send it somehow to the mentioned CP2101 UART that i can print it on the screen.

    Sadly i am not that good in uC programming but i want to get better.
    How can i configure Halcogen and CCS with this Sensor or potentiometer to get some data on my screen that i can work with.

    Many thanks in advance!

    best regards
    Markus
  • The "TEMP SENSOR" spot on the TMS570LC4357 HDK  is populated with a simple trim pot. The schematics are on the WIKI. See page 10.

    The internal temp sensor will give the junction temperature of the device. Because the devices generates heat as it runs, this will usually be at a higher (sometimes much higher) temperature than ambient. If you want true ambient temperature, you need an external device, such as TMP006 or HDC1080. These both interface to the micro using I2C. For easy development the TMP006 is on the SENSOR HUB booster pack.

  • thanks for the help so far but i have also Problems with the settings knowledge.

    1) So basically there are no temp sensors on this launchpad do i get this right?

    2) Ok and what kind of Data do i get from this trimpot?
    2a) is this the junction temperature what can be around 80 degrees? or how can i imagine the output?

    3) The schematics shows that the Trimpot is on AD1 IN_6  but in the data sheet (page 320) it says AD1IN[31] for the "temp sensor 1". Which one is right ?

    4) Is this "temp sensor 1" on page 320 the mentioned trimpot?

    5) And if i want to make the settings for this trimpot that i get at first some data to work with, how what and where do i have to go in HalCoGen?
    I would assume to go to the driver enable tab mark "ADC1driver" and then go to the ADC1 tab. There to the ADC1 Group1 tab and mark "enable PIN 6" for the mentioned AD1 IN_6. is that correct?

    Or do i have to make other settings?

    just that you get my goal:

    i need some data (the best would be something what i can imagine that its correct, for example i know ambient temperature is around 22 degrees) but if i get some other data what i can assume is correct it doesnt matter which data i have. Then i want to send this data via SPI bus to a microcontroller from Telit(which includes a wireless LTE connection interface). and then i want to use this data to send it to a web interface which i will create after i have done the other work. (I want to get familiar with data communication and IoT concepts.
    But first i need some data from this TI launchpad.

    Best regards.
    Markus

  • 1) So basically there are no temp sensors on this launchpad do i get this right?

    - None on the launch pad, just the three internal sensors on the chip.

    2) Ok and what kind of Data do i get from this trimpot?

    -  You can do an AtoD conversion and get a value from 0 to 0xFFF (12-bit) depending on the position of the trim pot.


    2a) is this the junction temperature what can be around 80 degrees? or how can i imagine the output?

    - The junction temperature is the inside temperature of the device. It is a function of the power being consumed by the device, how well the board/system dissipates the heat and the external temperature. Yes 80C would be about right for this device running full speed at room temp (maybe not quite that hot).

    3) The schematics shows that the Trimpot is on AD1 IN_6  but in the data sheet (page 320) it says AD1IN[31] for the "temp sensor 1". Which one is right ?

    - The datasheet is referring to the internal temperature sensor.

    4) Is this "temp sensor 1" on page 320 the mentioned trimpot?

    - no, it is one of the three internal temperature sensors

    5) And if i want to make the settings for this trimpot that i get at first some data to work with, how what and where do i have to go in HalCoGen?
    I would assume to go to the driver enable tab mark "ADC1driver" and then go to the ADC1 tab. There to the ADC1 Group1 tab and mark "enable PIN 6" for the mentioned AD1 IN_6. is that correct?

    - Yes