<?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: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet! in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773865#M4738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont suppose you happen to know the name of the function or source file? are these the latest SDK examples? They say they were last updated (2.2) in July on the QN908x software and tools section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Feb 2018 10:58:11 GMT</pubDate>
    <dc:creator>silentsam</dc:creator>
    <dc:date>2018-02-01T10:58:11Z</dc:date>
    <item>
      <title>How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773863#M4736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a QN9080-DK for a project, I have configured the system to use the built-in temperature sensor (Channel 13 of ADC), when I receive sampled data at an instance, the data is shown in a hex value format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a scaling technique/formula I can use to obtain actual temperature values? This is not provided in the data sheet!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, does this temp sensor detect ambient temperature? or temperature of ADC input to an allocated channel?&lt;/P&gt;&lt;P&gt;The former would be very odd as temp of the IC would surely be affected by operating temps?!&lt;/P&gt;&lt;P&gt;Does the sensor use peripheral circuitry on the QN908x module of the DK?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any insight would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 11:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773863#M4736</guid>
      <dc:creator>silentsam</dc:creator>
      <dc:date>2018-01-31T11:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773864#M4737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found some code that does this in the new SDK that was released today (2.2).&amp;nbsp; Look at the temperature sensor project in the Bluetooth examples.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 22:25:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773864#M4737</guid>
      <dc:creator>joseraffucci</dc:creator>
      <dc:date>2018-01-31T22:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773865#M4738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont suppose you happen to know the name of the function or source file? are these the latest SDK examples? They say they were last updated (2.2) in July on the QN908x software and tools section.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2018 10:58:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773865#M4738</guid>
      <dc:creator>silentsam</dc:creator>
      <dc:date>2018-02-01T10:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773866#M4739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam，&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can obtain the temperature data through the following modifications.&lt;/P&gt;&lt;P&gt;base on “release_conn_ksdk_2.2_qn9080_1.5.3_RC5_1\boards\qn908xcdk\wireless_examples\bluetooth\temperature_sensor”， you can download it at&amp;nbsp;&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/builder" title="https://mcuxpresso.nxp.com/en/builder"&gt;https://mcuxpresso.nxp.com/en/builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This modification will be added in the subsequent SDK, and there will be correction factor participation, and the accuracy will be higher.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@@ -314,11 +314,15 @@ int32_t BOARD_GetTemperature(void)&lt;BR /&gt; {}&lt;BR /&gt; &lt;BR /&gt; /* Get the result */&lt;BR /&gt; adcConvResult = ADC_GetConversionResult(ADC);&lt;BR /&gt; &lt;BR /&gt;// return (int32_t) ADC_ConversionResult2Temperature(ADC, adcConvResult);&lt;BR /&gt;&amp;nbsp;float mvResult = ADC_ConversionResult2Mv(ADC, ADC_TEMP_CHANNEL, ADC_CFG_IDX, mAdcBandgap, mAdcVinn,&lt;BR /&gt;&amp;nbsp;adcConvResult);&lt;BR /&gt;&amp;nbsp;return (int32_t)((865.735696 - mvResult) / 1.35) * 100;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:31:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773866#M4739</guid>
      <dc:creator>xing_chang</dc:creator>
      <dc:date>2018-02-02T03:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773867#M4740</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Xing,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you elaborate on the equation for the return value? &lt;SPAN lang="en-GB"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;From this equation the range of mV is tiny, if result is in degrees C then 865.735696mV = 0C, 864.385696mV = 100C – which doesn’t seem like a reliable source.&amp;nbsp; Or have I misunderstood?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Also, you have mentioned using the ADC - is there a dedicated input pin for the temperature sensor? eg. the ADC demo uses ADC4/A2 (PA08) on the DK board. I cant find anything in the datasheet. The temperature sensor configuration is poorly documented.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2018 10:54:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773867#M4740</guid>
      <dc:creator>silentsam</dc:creator>
      <dc:date>2018-02-14T10:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I convert ADC samples from hex values to temperature values (QN908x)? info not provided in data sheet!</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773868#M4741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sam，&lt;/P&gt;&lt;P&gt;(int32_t)((865.735696-mvresult) / 1.35)&lt;/P&gt;&lt;P&gt;is the true temperature value, multiplying by 100, which should be a convenient conversion for processing data of bluetooth profile, converting decimal to integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The temperature sensor uses adc channel 13，no external input pins correspond to it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 01:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/How-do-I-convert-ADC-samples-from-hex-values-to-temperature/m-p/773868#M4741</guid>
      <dc:creator>xing_chang</dc:creator>
      <dc:date>2018-02-22T01:26:39Z</dc:date>
    </item>
  </channel>
</rss>

