<?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: Temperature Sensor Accuracy on MKL05Z in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499861#M31209</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Even in the series of the Kinetis, the ADC module is also not same.&lt;/P&gt;&lt;P&gt;And the ADC operation modes are great variety too.&lt;/P&gt;&lt;P&gt;It's impossible to illustrate parameters in a table which can be suit to all ADC operation modes.&lt;/P&gt;&lt;P&gt;So I think the table in the AN3031 is more mean to compare the differ ways to calculate the temperature.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 10:38:09 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2016-04-19T10:38:09Z</dc:date>
    <item>
      <title>Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499858#M31206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need good accuracy in the 75°C to 100°C range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading through Freescale's (NXP) Application Note AN3031, I see the following table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/31937i9C62A9CD44EA5CF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am uncalibrated and using fixed-point. Say my "actual" temperature is 82°C. So what exactly does this ±18°C mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Does this ±18°C represent an error across the entire temperature range, or just the extremities (25C has much less error whereas 85C has ±18°C)???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Is this accuracy within the same chip (my sampled readings can range from 64°C to 100°C when the actual temperature is 82°C), or does it represent the error from chip to chip, or even reel to reel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499858#M31206</guid>
      <dc:creator>rampsr</dc:creator>
      <dc:date>2016-04-13T14:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499859#M31207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and the opportunity to serve you.&lt;/P&gt;&lt;P&gt;1) Does this ±18°C represent an error across the entire temperature range, or just the extremities (25C has much less error whereas 85C has ±18°C)???&lt;/P&gt;&lt;P&gt;I think it means the extremities.&lt;/P&gt;&lt;P&gt;2) Is this accuracy within the same chip (my sampled readings can range from 64°C to 100°C when the actual temperature is 82°C), or does it represent the error from chip to chip, or even reel to reel?&lt;/P&gt;&lt;P&gt;The table illustrates the different data process algorithm affect the accuracy of the temperature sensor implementation for the HCS08, however it doesn't suit for other devices likes the Kinetis series.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 02:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499859#M31207</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-04-14T02:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499860#M31208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the data in the table only describes the HCS08 and not the Kinetis, then Freescale/NXP need to correct their literature. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is from page 458 of the "KL05 Sub-Family Reference Manual" for the &lt;STRONG&gt;"KINETIS"&lt;/STRONG&gt; microcontrollers&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32436i1ED8363F69E14F39/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Well, I'm seeking "more information on using the temperature sensor".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the Kinetis is different, then can someone from Freescale/NXP answer the question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 21:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499860#M31208</guid>
      <dc:creator>rampsr</dc:creator>
      <dc:date>2016-04-18T21:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499861#M31209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Even in the series of the Kinetis, the ADC module is also not same.&lt;/P&gt;&lt;P&gt;And the ADC operation modes are great variety too.&lt;/P&gt;&lt;P&gt;It's impossible to illustrate parameters in a table which can be suit to all ADC operation modes.&lt;/P&gt;&lt;P&gt;So I think the table in the AN3031 is more mean to compare the differ ways to calculate the temperature.&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 10:38:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499861#M31209</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-04-19T10:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499862#M31210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have noted before how 'difficult' AN3031 is in working with the on-chip temperature bandgap.&amp;nbsp; The 'error bands' are just as misleading.&amp;nbsp; Clearly, on a 32-bit processor the integer-math can be 'scaled' (I do it in mV/mC, you might want tenths of mV/mC) to be JUST as accurate, or better, than 'floating point'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might glean some details from my analysis in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/380186"&gt;Kinetis K22 Measure Temperature Using ADC&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That all being said, your 'actual accuracy' will depend HIGHLY on at least the 'consistency' of your ADC reference, AND for any such 'real accuracy' a full 2 or 3 point calibration for EVERY unit individually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 18:29:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499862#M31210</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-04-19T18:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499863#M31211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also look at my 'consolidated' post regarding on-chip temp:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/390524"&gt;On-chip temperature Calculations&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 14:46:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499863#M31211</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-05-03T14:46:38Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499864#M31212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for an excellent write up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am worried about how I am using the onboard temperature sensor, which tries to regulate a heat source several millimeters away. I may be too decoupled from the heat source and think I ought to use a thermistor right up against the heat source for a much more accurate and precise PI controlling mechanism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, in my application I am not calibrating anything. I am not using the bandgap value in any way. I use processor expert to set up my AD signals. My current set up is the following:&lt;/P&gt;&lt;P&gt;A/D Resolution: 12 Bits&lt;/P&gt;&lt;P&gt;Conversion Time: 3.548387 µs&lt;/P&gt;&lt;P&gt;Low-Power Mode: Disabled&lt;/P&gt;&lt;P&gt;High-speed conversion mode: Enabled&lt;/P&gt;&lt;P&gt;Asynchro clock output: Disabled&lt;/P&gt;&lt;P&gt;Sample time: 0 = short&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Clocks&lt;/P&gt;&lt;P&gt;Core clock: 47.972352 MHz&lt;/P&gt;&lt;P&gt;Bus clock: 23.986176 MHz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All I do is take a AD measurement every 50 milliseconds and run the returning 12 bit value into a PI controller routine where the setpoint for my routine is set as a number to compare against the OnBoard Temperature Sensor AD reading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an excel table with a long set of possible AD values for the temperature sensor. In the adjacent column are the temperature values representing those AD values. I am assuming a fixed Vref of 3.2V (I know this can vary and is the cause for much of my accuracy, but let's ignore that for now and assume ±0V tolerance on my reference).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if my AD value is 838, my temperature on the sensor should be 62.5°C ±X°C. I don't know my X.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp = 25 - [(Vtemp - Vtemp25) / m)]&lt;/P&gt;&lt;P&gt;Vtemp = 838 * 3.2V / 4096&lt;/P&gt;&lt;P&gt;Vtemp = 0.654688&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temp = 25 - [(0.654688 - 0.719) / 0.001715]&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Temp = 62.5°C&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in my code I just set my setpoint to 838 for the PI controller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if I have several devices with this algorithm running, they all settle out at different powers but all have the same setpoint value. Therefore I believe that from device to device the microcontroller in each interprets the AD reading of 838 as different temperatures. I have not established the accuracy of my on board temperature sensor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe if I move to using a thermistor right next to my heat source, then I am no longer restrained to the accuracy of my reference voltage since my voltage supplying power through the thermistor would be an output from the microcontroller and a 1% resistor for my thermistor divider. This way it is nothing more than a ratio of my voltage reference for specific temperatures.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comments or suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 May 2016 19:48:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499864#M31212</guid>
      <dc:creator>rampsr</dc:creator>
      <dc:date>2016-05-24T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Temperature Sensor Accuracy on MKL05Z</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499865#M31213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For all the reasons you mention, I would personally go with the close-to-heat-point 1% thermistor with a matching 1% resistor of about the same resistance at the setpoint temperature, and be VERY happy with the full-ratiometric measurement process you describe.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 May 2016 13:21:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Temperature-Sensor-Accuracy-on-MKL05Z/m-p/499865#M31213</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2016-05-26T13:21:09Z</dc:date>
    </item>
  </channel>
</rss>

