<?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>LPC Microcontrollers中的主题 Re: LPC546xx Internal temperature sensor to ADC channel0</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521022#M50122</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you know that the temperature sensor is connected to channel 0 of ADC for LPC546xx, so you have to select ADC channel 0. Secondly, there is an Input Select register in ADC converter, you have to set the reg as 3 so that you can select temperature sensor. For detailed inf, pls refer to section 44.6.2 Input Select register in UM10912.pdf&lt;/P&gt;
&lt;P&gt;I have used the lpc_adc_interrupt as an example and changed it as following so that you can sample temperature sensor, pls have a try.&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 lia-image-align-inline" image-alt="xiangjun_rong_0-1663055440756.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193403i2980ECDBD759C4E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1663055440756.png" alt="xiangjun_rong_0-1663055440756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 07:52:57 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-09-13T07:52:57Z</dc:date>
    <item>
      <title>LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1520963#M50121</link>
      <description>&lt;P&gt;I tried to configure the internal temperature sensor in LPC54608 by referring to the chapters in user manual UM10912 in ADC controller and ADC internal temperature sensor. Here I have used 180MHz system clock and reduced to 60MHz using clock division in ADC CTRL. And used Synchronous mode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And referred errata sheet also to configure ADC where I kept all channels in digital mode first and then I made the required channel 0 as analog . I powered ADC after all configuration of registers in ADC as it is mentioned in Errata sheet. Still the temperature sensor not given any response. Used SEQA_CTRL register to access sequence-A. Steps followed to read temperature sensor reading from chapter 45.&lt;/P&gt;&lt;P&gt;Can anyone please let me know how do I configure temperature sensor properly and get the conversion through ADC and read digital result.?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 06:51:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1520963#M50121</guid>
      <dc:creator>NagamalleswaraRao</dc:creator>
      <dc:date>2022-09-13T06:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521022#M50122</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you know that the temperature sensor is connected to channel 0 of ADC for LPC546xx, so you have to select ADC channel 0. Secondly, there is an Input Select register in ADC converter, you have to set the reg as 3 so that you can select temperature sensor. For detailed inf, pls refer to section 44.6.2 Input Select register in UM10912.pdf&lt;/P&gt;
&lt;P&gt;I have used the lpc_adc_interrupt as an example and changed it as following so that you can sample temperature sensor, pls have a try.&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 lia-image-align-inline" image-alt="xiangjun_rong_0-1663055440756.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193403i2980ECDBD759C4E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1663055440756.png" alt="xiangjun_rong_0-1663055440756.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 07:52:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521022#M50122</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-09-13T07:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521747#M50139</link>
      <description>&lt;P&gt;I have followed all the steps as you mentioned. Still didn't get any response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I'm attaching my code so that you may find any mistake.&lt;/P&gt;&lt;P&gt;//Clock has taken from PLL settings(driver already written) and my CPU clock is 180MHz.&lt;/P&gt;&lt;P&gt;In errata sheet it is mentioned that keep all ports in digital mode and then asked to use analog when needed.&lt;/P&gt;&lt;P&gt;Function to keep digital mode and disable clock for ADC:&lt;/P&gt;&lt;P&gt;void disable_all_adc()&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;IOCON-&amp;gt;PIO[0][10]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][11]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][12]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][15]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][16]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][31]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[1][0]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[2][0]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[2][1]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[3][21]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[3][22]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;IOCON-&amp;gt;PIO[0][23]|=(1&amp;lt;&amp;lt;8);&lt;BR /&gt;SYSCON-&amp;gt;PDRUNCFG[0]|=(1&amp;lt;&amp;lt;9)|(1&amp;lt;&amp;lt;10)|(1&amp;lt;&amp;lt;19)|(1&amp;lt;&amp;lt;23);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;Function to initiate ADC:&lt;/P&gt;&lt;P&gt;void adc_init(void)&lt;BR /&gt;{&lt;BR /&gt;SYSCON-&amp;gt;AHBCLKCTRL[0]|=(1&amp;lt;&amp;lt;13);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//IOCON power up&lt;BR /&gt;disable_all_adc();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //disable function calling&lt;BR /&gt;&lt;BR /&gt;SYSCON-&amp;gt;PDRUNCFG[0]&amp;amp;=~(1&amp;lt;&amp;lt;9)|(1&amp;lt;&amp;lt;10)|(1&amp;lt;&amp;lt;19)|(1&amp;lt;&amp;lt;23);&amp;nbsp; &amp;nbsp; &amp;nbsp;//powering up ADC and related pins&lt;BR /&gt;SYSCON-&amp;gt;PDRUNCFG[1]&amp;amp;=~(1&amp;lt;&amp;lt;3);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;BR /&gt;delay(20000);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//To generate atleast 20uS delay&lt;BR /&gt;SYSCON-&amp;gt;AHBCLKCTRL[0]|=(1&amp;lt;&amp;lt;27);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Enabling clock&lt;BR /&gt;SYSCON-&amp;gt;PRESETCTRL[0]&amp;amp;=~(1&amp;lt;&amp;lt;27);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Clearing reset&lt;BR /&gt;ADC0-&amp;gt;SEQ_CTRL[0]|=(1&amp;lt;&amp;lt;31);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Enabling sequence A&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;ADC0-&amp;gt;CTRL|=0x02;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Clock division by 3: 60MHz returns&lt;BR /&gt;ADC0-&amp;gt;CTRL&amp;amp;=~(1&amp;lt;&amp;lt;8);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Synchronous mode selected.&lt;BR /&gt;ADC0-&amp;gt;CTRL|=(1&amp;lt;&amp;lt;9)|(1&amp;lt;&amp;lt;10);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //12 bit resolution&lt;BR /&gt;ADC0-&amp;gt;CTRL|=(1&amp;lt;&amp;lt;12)|(1&amp;lt;&amp;lt;13)|(1&amp;lt;&amp;lt;14);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//TSAMP 9.5ADC clock cycles&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;ADC0-&amp;gt;SEQ_CTRL[0]&amp;amp;=~(1&amp;lt;&amp;lt;31);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Disabling sequence&lt;BR /&gt;ADC0-&amp;gt;SEQ_CTRL[0]|=(1&amp;lt;&amp;lt;0)|(1&amp;lt;&amp;lt;31);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Channel 0 selection and enabling ADC-A seq&lt;BR /&gt;ADC0-&amp;gt;SEQ_CTRL[0]&amp;amp;=~(1&amp;lt;&amp;lt;27);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Disabling burst mode&lt;BR /&gt;&lt;BR /&gt;SYSCON-&amp;gt;PDRUNCFG[0]&amp;amp;=~(1&amp;lt;&amp;lt;6);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//powering up internal temperature senor&lt;BR /&gt;ADC0-&amp;gt;INSEL=0x03;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// Selecting temperature sensor to ADC0&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;IOCON-&amp;gt;PIO[0][11]&amp;amp;=~((1&amp;lt;&amp;lt;8)|(1&amp;lt;&amp;lt;3)|(1&amp;lt;&amp;lt;2)|(1&amp;lt;&amp;lt;1)|(1&amp;lt;&amp;lt;0)); //IOCON Inactive mode,inverting disabled&lt;BR /&gt;IOCON-&amp;gt;PIO[0][11]&amp;amp;=~((1&amp;lt;&amp;lt;5)|(1&amp;lt;&amp;lt;4));&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Analog mode&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;That's how initialization done.&lt;/P&gt;&lt;P&gt;In main function :&lt;/P&gt;&lt;P&gt;int main()&lt;BR /&gt;{&lt;BR /&gt;clock_init();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Driver code.(It's working fine)&lt;BR /&gt;&lt;BR /&gt;adc_init();&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//Calling adc initialization&lt;BR /&gt;&lt;BR /&gt;while(1)&lt;BR /&gt;{&lt;BR /&gt;&lt;BR /&gt;ADC0-&amp;gt;SEQ_CTRL[0] |= (1&amp;lt;&amp;lt;26);&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // start conversion&lt;BR /&gt;if(scan&amp;lt;=samples)&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Scan and samples(200) are variables&lt;BR /&gt;{&lt;BR /&gt;while(((ADC0-&amp;gt;SEQ_GDAT[0])&amp;amp;(1U&amp;lt;&amp;lt;31))!=1);&lt;BR /&gt;&lt;BR /&gt;result+= (ADC0-&amp;gt;DAT[0]&amp;gt;&amp;gt;4)&amp;amp;0xFFF;&lt;BR /&gt;}&lt;BR /&gt;scan++;&lt;BR /&gt;&lt;BR /&gt;if(scan==samples)&lt;BR /&gt;{&lt;BR /&gt;out = (float) ((result *3.3)/4095);&lt;BR /&gt;scan=1;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 06:57:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521747#M50139</guid>
      <dc:creator>NagamalleswaraRao</dc:creator>
      <dc:date>2022-09-14T06:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521790#M50140</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Can you download SDK package and use the SDK adc example to test the temperature sensor? If the SDK example is okay, then refer to it to develop code based on register instead of driver.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-software-development-kit-sdk:MCUXpresso-SDK" target="_blank"&gt;https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-software-development-kit-sdk:MCUXpresso-SDK&lt;/A&gt;&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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 07:55:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521790#M50140</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-09-14T07:55:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521934#M50143</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I got the reading. Can you give me the formula for calculating the temperature with the resultant converted hexadecimal value for LPC54608, 12 bit ADC.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 11:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1521934#M50143</guid>
      <dc:creator>NagamalleswaraRao</dc:creator>
      <dc:date>2022-09-14T11:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC546xx Internal temperature sensor to ADC channel0</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1522409#M50152</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls refer to table 57 in data sheet of LPC546xx, which can be downloaded from the link:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com.cn/docs/en/data-sheet/LPC546XX.pdf" target="_blank"&gt;https://www.nxp.com.cn/docs/en/data-sheet/LPC546XX.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;assume the voltage is x, y is the temperature. The formula is y=k*x+b&lt;/P&gt;
&lt;P&gt;the k is -2.04mV/C, b 584mV at 0 degree..&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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1663204418538.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/193699i0C662164DB391ABA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1663204418538.png" alt="xiangjun_rong_0-1663204418538.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2022 01:21:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC546xx-Internal-temperature-sensor-to-ADC-channel0/m-p/1522409#M50152</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-09-15T01:21:59Z</dc:date>
    </item>
  </channel>
</rss>

