<?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>i.MX ProcessorsのトピックRe: ADC temperature and test reading</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688842#M209358</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So sorry for my later reply because of the nxp web login issues these days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please also check your ADC reference voltage, what's the reference voltage now. As I don't have your mentioned board, and it's schematic, please help to check yoru schematic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;About the RM rev2 remove the temp connection situation, I find the doc update log also didn't mention it, I will check it internally, then give you reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please keep patient, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2023 04:37:37 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2023-07-20T04:37:37Z</dc:date>
    <item>
      <title>ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1687642#M209241</link>
      <description>&lt;P&gt;On iMXRT1176, there are auxiliary channels for ADC conversion, besides the normal ones (for external signals routed to physical pins).&lt;BR /&gt;The reference manual hints that among these channels is a temperature sensor, but it doesn't list which channels are associated with it (nor with other auxiliary signals). Nor does it specify how to convert from the raw ADC value to a temperature in Celsius degrees.&lt;BR /&gt;The datasheet has no information about it either.&lt;BR /&gt;However, in the Config Tools I can choose these auxiliary signals:&lt;BR /&gt;* Analog test bus 0: ADC2, CH7A&lt;BR /&gt;* Analog test bus 1: ADC1, CH6B&lt;BR /&gt;* Temperature sensor minus: ADC1, CH7A&lt;BR /&gt;* Temperature sensor plus: ADC1, CH7B&lt;BR /&gt;Which also means that I can read the two temperature sensor signals in differential mode.&lt;/P&gt;&lt;P&gt;So:&lt;BR /&gt;1) How should I convert the raw data to Celsius degrees?&lt;BR /&gt;2) Should I read the differential temperature sensor, to get a sensible, absolute temperature reading?&lt;BR /&gt;3) What are the two analog test bus signals?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 14:44:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1687642#M209241</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-13T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688253#M209296</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; You can see the temperature channel in the RT1170RM:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1689320715965.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232396iE2119091C8FAE2EA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1689320715965.png" alt="kerryzhou_0-1689320715965.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kerryzhou_0-1689320715965.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;About the&lt;SPAN&gt;&amp;nbsp;raw ADC value to a temperature in Celsius degrees., normally, you can use the real test result to check it,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;eg, 20 degree-&amp;gt;ADC data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;30 degree-&amp;gt;ADC data&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;then you can use draw the wave and calculate the formula, you can use that&amp;nbsp;formula in the code and get the real ADC data related temp.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This is my own experience when I design my own project.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) How should I convert the raw data to Celsius degrees?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;gt;Answer:&amp;nbsp; test, get formula, then put to code to calculate it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;It is determined by your own algorithm.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;2) Should I read the differential temperature sensor, to get a sensible, absolute temperature reading?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;gt;Answer: To RT1170 chip IP, no, it just give you the temp ADC data, no directly temperature .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;3) What are the two analog test bus signals?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;=&amp;gt;Answer: should be the internal test pin, no detail description about it, you can ignore it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 08:09:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688253#M209296</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-14T08:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688317#M209302</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;thanks for the information.&lt;/P&gt;&lt;P&gt;I see that the reference manual (rev1) has the information about the temperature sensor channels, as in your image.&lt;BR /&gt;Unfortunately, I was looking at rev2 of the reference manual, where that information has disappeared.&lt;/P&gt;&lt;P&gt;About the temperature formula: I saw in the datasheet (IMXRT1170IEC rev4, §4.8.4) that the temperature sensor range is [-40, 125]°C. I assume that this temperature sensor (used by the TEMPSENSOR peripheral for generating interrupts) is the same as the one I can read through the ADC.&lt;BR /&gt;Applying this conversion (i.e. mapping [0, 4096] to [-40, 125]°C), I get sensible results, at ~25°C.&lt;BR /&gt;I got them by differential reading (plus - minus, i.e. CH7B - CH7A). By single-ended reading, I get very low values, which are meaningless, I guess.&lt;/P&gt;&lt;P&gt;Does this [0, 4096] to [-40, 125]°C mapping sound right to you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't test it much farther away from room temperature, and I don't have many MCU samples now for extensive testing (also considering that the stated accuracy is +-5°C / +-10°C, so I'd need more than a few devices to get valid results).&lt;BR /&gt;Having a "typical" formula in the datasheet/manual would be most welcome, rather than having every customer figure it out by testing and (probably wrong) guesswork.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 08:52:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688317#M209302</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-14T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688433#M209322</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;，&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;What's the board and the chip partnumber you are testing now?&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I will help you to check the details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 10:27:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688433#M209322</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-14T10:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688476#M209327</link>
      <description>&lt;P&gt;iMXRT1176CVM8A on Embedded Artists' iMXRT1176 uCOM module&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:17:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688476#M209327</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-14T11:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688842#M209358</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; So sorry for my later reply because of the nxp web login issues these days.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please also check your ADC reference voltage, what's the reference voltage now. As I don't have your mentioned board, and it's schematic, please help to check yoru schematic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;About the RM rev2 remove the temp connection situation, I find the doc update log also didn't mention it, I will check it internally, then give you reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Please keep patient, thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Kerry&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 04:37:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688842#M209358</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-20T04:37:37Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688958#M209380</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;I already get the information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; RT1170 internal temp sensor is not connect to the ADC module, it is the indepent IP module:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kerryzhou_0-1689832728650.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232575i112004FE78167379/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kerryzhou_0-1689832728650.png" alt="kerryzhou_0-1689832728650.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;kerryzhou_0-1689832728650.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;It also have the formula which can get the temp &lt;SPAN&gt;&amp;nbsp;Celsius degrees, please refer to the SDK code:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;SDK_2_13_10_MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\tempsensor\cm7&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Wish it helps you!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 06:00:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1688958#M209380</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-20T06:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689048#M209388</link>
      <description>&lt;P&gt;Hi Kerry,&lt;/P&gt;&lt;P&gt;no problem about the delay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ADC_VREFH pin is at 1.8V (the same as VDDA_ADC_1P8)&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 06:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689048#M209388</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-20T06:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689063#M209389</link>
      <description>&lt;P&gt;Ok, so the ADC temperature sensor channel is completely independent of the TMPSNS peripheral.&lt;BR /&gt;The formula for TMPSNS is clear. However, can I apply this same formula for the ADC reading of the temperature?&lt;BR /&gt;Or, would you suggest just ignoring the ADC temperature channel, and reading the temperature using the TMPSNS peripheral?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 07:04:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689063#M209389</guid>
      <dc:creator>stefano-quantic</dc:creator>
      <dc:date>2023-07-20T07:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: ADC temperature and test reading</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689210#M209400</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/219981"&gt;@stefano-quantic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please ignore the ADC channel for temp, as the RT1170 can't support it, that's why it is removed from the new RM version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; Please use the&amp;nbsp;&lt;SPAN&gt;TMPSNS peripheral.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kerry&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2023 08:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/ADC-temperature-and-test-reading/m-p/1689210#M209400</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2023-07-20T08:51:45Z</dc:date>
    </item>
  </channel>
</rss>

