<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LC60: Internal Temperature Sensor Calibration in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139146#M5236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello BP,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I have just realised that there is a very significant limitation on resolution of the temperature measurement when using the internal sensor.&amp;nbsp; This is because the output of the sensor is applied directly to the ADC channel, without any amplification.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Consider that the sensor output will change at the rate of 1.7mv/degreeC.&amp;nbsp; However, the LSB resolution of the 10-bit ADC corresponds with a voltage change of 3.23 mV, assuming Vdd is 3.3V.&amp;nbsp; This represents a temperature resolution of 2.9C.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;In practice, the&amp;nbsp;overall uncertainty&amp;nbsp;would be substantially greater than 1 LSB, since there would also be similar uncertainty for the calibration process.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you require more accurate temperature measurement within your project, I guess you would need to use a separate sensor.&amp;nbsp; By comparison, analog sensors will typically provide a slope of 10mV/degreeC, substantially more than the internal sensor.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 08 Jul 2007 20:06:56 GMT</pubDate>
    <dc:creator>bigmac</dc:creator>
    <dc:date>2007-07-08T20:06:56Z</dc:date>
    <item>
      <title>LC60: Internal Temperature Sensor Calibration</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139143#M5233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to calibrate Temperature Sensor&amp;nbsp;Channel (AD26) of the internal ADC. I didn't understand the related section the the datasheet for this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I measured the voltage at channel AD26 (temperature sensor) as 0.761V&amp;nbsp;when the room temperature is 26C degree. I'm only capable of making single point calibration.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I calibrate the internal temperature sensor by using only these data?&amp;nbsp;Is the temperature sensor curve linear?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by BasePointer on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-07-04&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;04:26 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 20:25:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139143#M5233</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-07-04T20:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: LC60: Internal Temperature Sensor Calibration</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139144#M5234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello BP,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Using the formula given in the data sheet -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;TempC = (Vtemp - 0.7013)/0.0017&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;a measured voltage of 0.761should correspond to a temperature of 35C, with an uncertainty of +/-12C.&amp;nbsp; Since you say the room temperature was 26C, and the measured temperature is that of the die, it is quite&amp;nbsp;possible there may be some self-heating of the die above ambient.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;For the self-heating to be insignificant, the MCU would need to remain in stop mode for the majority of the time, and the temperature measurement taken very soon after waking up.&amp;nbsp; Was this the situation for the measurement?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The interpretation of the above&amp;nbsp; formula -&lt;/FONT&gt;&lt;/DIV&gt;&lt;OL&gt;&lt;LI&gt;&lt;FONT size="2"&gt;At a temperature of 0C, the nominal sensor voltage is 0.7013 volt.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;The nominal slope of the voltage-temperature characteristic is 1.7 mV/C.&amp;nbsp; Rather than dividing by this figure, it may be more&amp;nbsp;suitable, for integer calculations,&amp;nbsp;to consider multiplication by reciprocal slope of 588 C/volt.&lt;/FONT&gt;&lt;/LI&gt;&lt;LI&gt;&lt;FONT size="2"&gt;The data sheet also suggests that this slope may not remain exactly constant over a wider range of temperatures.&lt;/FONT&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Once you have ascertained that self-heating is not a significant factor, and if you intend to calibrate at room temperature, rather than 0C, I might suggest use of the following modified formula -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;TempC = (Vtemp - Vcal)*588 + Tcal&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;&lt;FONT face="Arial"&gt;where&lt;/FONT&gt; Vcal &lt;FONT face="Arial"&gt;and&lt;/FONT&gt; Tcal &lt;FONT face="Arial"&gt;are the results of the calibration process.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;With a single point calibration there is no basis for choosing other than the nominal slope.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Of course, Vtemp and Vcal are really ADC measurement values represented by Ntemp and Ncal.&amp;nbsp; I&amp;nbsp;assume that you also measure the band gap reference (Nref)&amp;nbsp;to calibrate the Vdd voltage.&amp;nbsp; Allowing for this, the formula can be further modified -&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT face="Courier New" size="2"&gt;TempC = ((Ntemp - Ncal)*(588*Vref)/Nref) + Tcal&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The value of (588*Vref) could be a pre-calculated integer constant.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2007 22:45:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139144#M5234</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-04T22:45:35Z</dc:date>
    </item>
    <item>
      <title>Re: LC60: Internal Temperature Sensor Calibration</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139145#M5235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Thanks bigmac for this detailed explanation.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2007 12:27:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139145#M5235</guid>
      <dc:creator>BasePointer</dc:creator>
      <dc:date>2007-07-06T12:27:41Z</dc:date>
    </item>
    <item>
      <title>Re: LC60: Internal Temperature Sensor Calibration</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139146#M5236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello BP,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I have just realised that there is a very significant limitation on resolution of the temperature measurement when using the internal sensor.&amp;nbsp; This is because the output of the sensor is applied directly to the ADC channel, without any amplification.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Consider that the sensor output will change at the rate of 1.7mv/degreeC.&amp;nbsp; However, the LSB resolution of the 10-bit ADC corresponds with a voltage change of 3.23 mV, assuming Vdd is 3.3V.&amp;nbsp; This represents a temperature resolution of 2.9C.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;In practice, the&amp;nbsp;overall uncertainty&amp;nbsp;would be substantially greater than 1 LSB, since there would also be similar uncertainty for the calibration process.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If you require more accurate temperature measurement within your project, I guess you would need to use a separate sensor.&amp;nbsp; By comparison, analog sensors will typically provide a slope of 10mV/degreeC, substantially more than the internal sensor.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Jul 2007 20:06:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/LC60-Internal-Temperature-Sensor-Calibration/m-p/139146#M5236</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-07-08T20:06:56Z</dc:date>
    </item>
  </channel>
</rss>

