<?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: LPC54608 Temperature Sensor in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984364#M38819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but i really need some direction.&amp;nbsp; i have started using the 2.6 adc burst code just so i can move on, and now, again, i'm getting result in the 915-920 range, translating to 10.95-12.45°.&amp;nbsp; This is using the exact same output file from IAR that is included in the zip folder above. how can i be getting such drastically different results with the exact same image, exact same location, board, etc, etc...&amp;nbsp; &amp;nbsp;?&lt;/P&gt;&lt;P&gt;just so you are aware, ambient temperature is 21°C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eileen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 12:46:48 GMT</pubDate>
    <dc:creator>eileen_radzwion</dc:creator>
    <dc:date>2020-01-09T12:46:48Z</dc:date>
    <item>
      <title>LPC54608 Temperature Sensor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984361#M38816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use the on-chip temperature sensor that is internally routed to the adc's channel 0.&amp;nbsp; I found in the data sheet for the lpc54608 we&amp;nbsp;must configure the ADC in single channel burst mode.&amp;nbsp; I have used the adc driver example from the sdk version 2.6, called lpc_adc_burst.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the result after more than 9 conversions is 919.&amp;nbsp; To determine what this equals in mV, i use the equation&amp;nbsp; (Vref_p - Vref_n)/4095 * V_in *1000 = 2.5/4095 * 919*1000.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;(with a Vrev_p = 2.5, and Vref_n = 0, and 12 bit resolution)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;therefore, the input is 561mV.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the graph and tables from the data sheet, this can be fed into an equation based on LLS of:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;mV = (-2.04)*temperature + 584&amp;nbsp; &amp;nbsp;=&amp;gt; temperature = (mV - 584)/(-2.04).&lt;/P&gt;&lt;P&gt;this means, in our case with 561mV we have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;temp = (561-584)/(-2.04) = 11.275°C&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering this is sitting in ambient office temperature, I hardly think this is accurate.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again, please note, this is using the sdk 2.6 version of lpc_adc_burst with only modification to remove the getchar() to initiate the conversions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in main:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;BR /&gt; ADC_Configuration();&lt;/P&gt;&lt;P&gt;/* Enable the interrupt. */&lt;BR /&gt; ADC_EnableInterrupts(DEMO_ADC_BASE, kADC_ConvSeqAInterruptEnable);&lt;BR /&gt; NVIC_EnableIRQ(DEMO_ADC_IRQ_ID);&lt;/P&gt;&lt;P&gt;PRINTF("Configuration Done.\r\n");&lt;/P&gt;&lt;P&gt;#if defined(FSL_FEATURE_ADC_HAS_CTRL_RESOL) &amp;amp; FSL_FEATURE_ADC_HAS_CTRL_RESOL&lt;BR /&gt; PRINTF("ADC Full Range: %d\r\n", g_Adc_12bitFullRange);&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_CTRL_RESOL */&lt;BR /&gt; while (1)&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp;//GETCHAR();&lt;/P&gt;&lt;P&gt;gAdcConvSeqAIntFlag = false;&lt;/P&gt;&lt;P&gt;/* ADC_DoSoftwareTriggerConvSeqA(DEMO_ADC_BASE); */&lt;BR /&gt; /* Enable the burst mode and start the conversion. */&lt;BR /&gt; ADC_EnableConvSeqABurstMode(DEMO_ADC_BASE, true);&lt;/P&gt;&lt;P&gt;while (!gAdcConvSeqAIntFlag)&lt;BR /&gt; {&lt;BR /&gt; }&lt;BR /&gt; PRINTF("gAdcResultInfoStruct.result = %d\r\n", gAdcResultInfoStruct.result);&lt;BR /&gt; PRINTF("gAdcResultInfoStruct.channelNumber = %d\r\n", gAdcResultInfoStruct.channelNumber);&lt;BR /&gt; /* PRINTF("gAdcResultInfoStruct.overrunFlag = %d\r\n", gAdcResultInfoStruct.overrunFlag ? 1U : 0U); */&lt;BR /&gt; PRINTF("\r\n");&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2019 15:07:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984361#M38816</guid>
      <dc:creator>eileen_radzwion</dc:creator>
      <dc:date>2019-12-16T15:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Temperature Sensor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984362#M38817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Eileen,&lt;/P&gt;&lt;P&gt;I think your code is correct, your computation is correct. Note that you have to wait for 10us after power-up, then use ADC to sample the temperature sensor.&lt;/P&gt;&lt;P&gt;The temperature accuracy is 3.7 degree from -40 to 105 based on data sheet.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&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/96908i70CE9946C2BB60F3/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Dec 2019 05:17:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984362#M38817</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-12-17T05:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Temperature Sensor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984363#M38818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have rerun the test with slightly different results, I also compared to the newer version of the sdk (2.7) as i'd prefer to use the updated code, but the results there were completely unacceptable.&amp;nbsp; I again have commented out the getchar as this is on a custom board, and these are the results of my testing.&amp;nbsp; in 2.7 version, i had to change the code to use channel 0 rather than channel 4 in the examples.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have included all code in the zip here, along with more details of the testing.&amp;nbsp; I would prefer to use 2.7 as that is more up to date, but why is it not consistent?&amp;nbsp; Also, why are the results different for 2.6 burst?&amp;nbsp; this is the same board and same code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;eileen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 528pt;" width="704"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="" colspan="3" height="20" style="height: 15.0pt; width: 144pt;" width="192"&gt;sdk 2.6 basic&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="" colspan="3" style="width: 144pt;" width="192"&gt;sdk 2.6 burst&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="" colspan="3" style="width: 144pt;" width="192"&gt;sdk 2.6 int&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;535.2564&lt;/TD&gt;&lt;TD align="right"&gt;23.89392&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;541.8559&lt;/TD&gt;&lt;TD align="right"&gt;20.65886&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;537.4359&lt;/TD&gt;&lt;TD align="right"&gt;22.82554&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;534.188&lt;/TD&gt;&lt;TD align="right"&gt;23.22057&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;540.9035&lt;/TD&gt;&lt;TD align="right"&gt;20.22792&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;536.63&lt;/TD&gt;&lt;TD align="right"&gt;22.02351&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;536.63&lt;/TD&gt;&lt;TD align="right"&gt;24.41763&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;542.735&lt;/TD&gt;&lt;TD align="right"&gt;21.12572&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;539.072&lt;/TD&gt;&lt;TD align="right"&gt;23.22057&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 528pt;" width="704"&gt;&lt;TBODY&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD class="" colspan="3" height="20" style="height: 15.0pt; width: 144pt;" width="192"&gt;2.7 basic&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="" colspan="3" style="width: 144pt;" width="192"&gt;2.7 burst&lt;/TD&gt;&lt;TD style="width: 48pt;" width="64"&gt;&lt;/TD&gt;&lt;TD class="" colspan="3" style="width: 144pt;" width="192"&gt;2.7 int&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;468.2112&lt;/TD&gt;&lt;TD align="right"&gt;56.7592&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;489.5849&lt;/TD&gt;&lt;TD align="right"&gt;46.28193&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;avg&lt;/TD&gt;&lt;TD align="right"&gt;472.619&lt;/TD&gt;&lt;TD align="right"&gt;54.59851&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;435.8974&lt;/TD&gt;&lt;TD align="right"&gt;32.79705&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;460.928&lt;/TD&gt;&lt;TD align="right"&gt;31.30073&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;min&lt;/TD&gt;&lt;TD align="right"&gt;438.9499&lt;/TD&gt;&lt;TD align="right"&gt;33.09632&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height: 15.0pt;"&gt;&lt;TD height="20" style="height: 15.0pt;"&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;517.094&lt;/TD&gt;&lt;TD align="right"&gt;72.5993&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;520.1465&lt;/TD&gt;&lt;TD align="right"&gt;60.32943&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;max&lt;/TD&gt;&lt;TD align="right"&gt;516.4835&lt;/TD&gt;&lt;TD align="right"&gt;71.10297&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 11:53:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984363#M38818</guid>
      <dc:creator>eileen_radzwion</dc:creator>
      <dc:date>2020-01-09T11:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Temperature Sensor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984364#M38819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but i really need some direction.&amp;nbsp; i have started using the 2.6 adc burst code just so i can move on, and now, again, i'm getting result in the 915-920 range, translating to 10.95-12.45°.&amp;nbsp; This is using the exact same output file from IAR that is included in the zip folder above. how can i be getting such drastically different results with the exact same image, exact same location, board, etc, etc...&amp;nbsp; &amp;nbsp;?&lt;/P&gt;&lt;P&gt;just so you are aware, ambient temperature is 21°C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Eileen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 12:46:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984364#M38819</guid>
      <dc:creator>eileen_radzwion</dc:creator>
      <dc:date>2020-01-09T12:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54608 Temperature Sensor</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984365#M38820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can i get some guidance please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Feb 2020 17:31:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54608-Temperature-Sensor/m-p/984365#M38820</guid>
      <dc:creator>eileen_radzwion</dc:creator>
      <dc:date>2020-02-05T17:31:59Z</dc:date>
    </item>
  </channel>
</rss>

