<?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: LPC802M001JDH20J adc not working with SDK adc driver example</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1209064#M43502</link>
    <description>&lt;P&gt;Hello XiangJun,&lt;/P&gt;&lt;P&gt;As you told me, on the initialization of the pins the PIENABLE0 was missing for the pins I was testing earlier. That solved my problem.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jan 2021 16:54:19 GMT</pubDate>
    <dc:creator>mgmate123</dc:creator>
    <dc:date>2021-01-08T16:54:19Z</dc:date>
    <item>
      <title>LPC802M001JDH20J adc not working with SDK adc driver example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1208446#M43482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to test the adc signals of my project with the SDK example before testing with my configuration code. I´ve tried with the interrupt and basic examples, and with both of them, the output shown in the console is as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADC interrupt example.&lt;BR /&gt;Configuration Done.&lt;BR /&gt;gAdcResultInfoStruct.result = 0&lt;BR /&gt;gAdcResultInfoStruct.channelNumber = 0&lt;BR /&gt;gAdcResultInfoStruct.overrunFlag = 0&lt;/P&gt;&lt;P&gt;I'm using the ADC0_0, ADC0_5 and ADC0_8 pins in my project and I´ve change the "DEMO_ADC_SAMPLE_CHANNEL_NUMBER" for each pin, and the output is always the same, only changing the number of the channel.&lt;/P&gt;&lt;P&gt;I've also checked the hardware, for each pin the value of the analog signal is correct and it should work.&lt;/P&gt;&lt;P&gt;I don't know if there is something missing in the SDK example that I need to include so it can match with my chip (LPC802M001JDH20J). I've no clue rigth know of what could be happening.&lt;/P&gt;&lt;P&gt;Hope you can help me.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;I'm going to attach the interrupt SDK example just in case.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 17:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1208446#M43482</guid>
      <dc:creator>mgmate123</dc:creator>
      <dc:date>2021-01-07T17:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802M001JDH20J adc not working with SDK adc driver example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1208642#M43486</link>
      <description>&lt;P&gt;Hi, Mateo,&lt;/P&gt;
&lt;P&gt;Regarding your question, I think you do not set up the ADC pins assignment, which leads to the sample result error.&lt;/P&gt;
&lt;P&gt;First of all, if you want to use ADC0_0 channel, you have to disable the temperature with the code.&lt;/P&gt;
&lt;P&gt;/* Use the temperature sensor input to channel 0. */&lt;BR /&gt;ADC_EnableTemperatureSensor(DEMO_ADC_BASE, false); in the void ADC_Configuration(void).&lt;/P&gt;
&lt;P&gt;Secondly, you have to set up the ADC0 pins assignment with the code like:&lt;/P&gt;
&lt;P&gt;(/* Enables clock for switch matrix.: enable */&lt;BR /&gt;CLOCK_EnableClock(kCLOCK_Swm);&lt;/P&gt;
&lt;P&gt;you have to write the PINENABLE 0 register so that you can set up the register.&lt;/P&gt;
&lt;P&gt;SWM-&amp;gt;PINENABLE0&amp;amp;=~(0x0FFF&amp;lt;&amp;lt;10); //enable all ADC channels&lt;/P&gt;
&lt;P&gt;You can use a function to write the PINENABLE 0 register in SDK, pls do it yourself.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;Regard&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-1610073702488.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/134284i75FAC64ABF0DAB05/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1610073702488.png" alt="xiangjun_rong_0-1610073702488.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;</description>
      <pubDate>Fri, 08 Jan 2021 02:45:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1208642#M43486</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-01-08T02:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802M001JDH20J adc not working with SDK adc driver example</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1209064#M43502</link>
      <description>&lt;P&gt;Hello XiangJun,&lt;/P&gt;&lt;P&gt;As you told me, on the initialization of the pins the PIENABLE0 was missing for the pins I was testing earlier. That solved my problem.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2021 16:54:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802M001JDH20J-adc-not-working-with-SDK-adc-driver-example/m-p/1209064#M43502</guid>
      <dc:creator>mgmate123</dc:creator>
      <dc:date>2021-01-08T16:54:19Z</dc:date>
    </item>
  </channel>
</rss>

