For our first test we will use the “TempSensorConv” example from the “controlSUITE” that you will get from here. In its default state this example will get the temperature reading of the microcontroller chip (via ADCIN5) and convert it into degree Celsius and Kelvin. But to see the temperature reading is not very straight forward.
So first of all Build the project by clicking on and then click on the debug button. After that click on to download the program on your launchpad. Unfortunately CCS is not like Arduino IDE where you can open a serial monitor to view the values of your variables. Here you need to use serial emulators like “puTTY” or “Tera Term”. But that i will show you in my next post. Right now we will use the features that is provided by CCS itself. So for that you need to put the “degC” variable on watch after clicking on the “Expressions” tab on the right hand side and clicking on “Add New Expression” and then write degC variable to it.
Now the good part is that you can also visualize the graph of the variable degC. For that right click on degC and then click on Graph.
This is what you will get…
The default sampling rate is 1Hz for CCS to refresh the samples, so change it to 100Hz to see rapidly changing values. you can blow on the Chip to decrease the temperature or keep it closer to the heat sink of the laptop to increase the temperature of the chip.