<?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: LPC832 - ADC interrupt handler not called when configured via Peripherals page</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1605469#M51719</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184079"&gt;@aaronm&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;If our understanding is correct, you are expecting to have something like &lt;EM&gt;void DEMO_ADC_IRQ_HANDLER_FUNC (void)&lt;/EM&gt; after configuring the ADC trough ConfigTools, is this correct?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1677270640944.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212323i389A1DBF85BA2F23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1677270640944.png" alt="RaulRomero_0-1677270640944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[SDK's LPC832 lpcxpresso832max_lpc_adc_interrupt example]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Peripherals Tool is used to configure initialization of a selected peripheral like ADC, so the part we mentioned at the beginning should be written by the user.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1677270640949.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212322iB3863C47D5BC1352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_1-1677270640949.png" alt="RaulRomero_1-1677270640949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[Peripherals Tool ADC Configuration]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;You could copy to clipboard the interrupt handler name and use it later in your main code as in the examples.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;If this is not what you are looking for, please let us know and share your project.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Feb 2023 20:38:05 GMT</pubDate>
    <dc:creator>RaRo</dc:creator>
    <dc:date>2023-02-24T20:38:05Z</dc:date>
    <item>
      <title>LPC832 - ADC interrupt handler not called when configured via Peripherals page</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1604973#M51714</link>
      <description>&lt;P&gt;I followed the SDK example for LPC832 ADC and it "worked": the interrupts and program flow behaved as expected, but I think the values on the ADC pin were incorrect. &amp;nbsp;That's not the issue; but it does show basic expected operation.&lt;/P&gt;&lt;P&gt;I then used the MCUXpresso Peripherals configuration page to declare an ADC on channel 3 (pin 1 on TSSOP20). &amp;nbsp;The main loop and interrupt handler are the same, but the interrupt handler never gets called. &amp;nbsp;I make sure to hit the "Update Code" button after making changes in the Peripherals screen, so it doesn't seem to be some simple oversight. &amp;nbsp;I could be wrong.&lt;/P&gt;&lt;P&gt;As I go through the code from the SDK example and the peripheral.c code generated by MCUXpresso, I don't see drastic changes or omissions. &amp;nbsp;The generated code is different, and things aren't necessarily called in the same sequence, but the majority of the logic is there. &amp;nbsp;However, when I execute the project, the interrupt handler is never called, and my loop trigger condition is never set, so it just hangs.&lt;/P&gt;&lt;P&gt;I can zip the project and send it along, if it'll help.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 04:46:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1604973#M51714</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-02-24T04:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832 - ADC interrupt handler not called when configured via Peripherals page</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1605469#M51719</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/184079"&gt;@aaronm&lt;/a&gt;,&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;If our understanding is correct, you are expecting to have something like &lt;EM&gt;void DEMO_ADC_IRQ_HANDLER_FUNC (void)&lt;/EM&gt; after configuring the ADC trough ConfigTools, is this correct?&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_0-1677270640944.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212323i389A1DBF85BA2F23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_0-1677270640944.png" alt="RaulRomero_0-1677270640944.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[SDK's LPC832 lpcxpresso832max_lpc_adc_interrupt example]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Peripherals Tool is used to configure initialization of a selected peripheral like ADC, so the part we mentioned at the beginning should be written by the user.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RaulRomero_1-1677270640949.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/212322iB3863C47D5BC1352/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RaulRomero_1-1677270640949.png" alt="RaulRomero_1-1677270640949.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;[Peripherals Tool ADC Configuration]&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;You could copy to clipboard the interrupt handler name and use it later in your main code as in the examples.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;If this is not what you are looking for, please let us know and share your project.&lt;/P&gt;
&lt;P class="lia-align-justify"&gt;Best regards, Raul.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2023 20:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1605469#M51719</guid>
      <dc:creator>RaRo</dc:creator>
      <dc:date>2023-02-24T20:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832 - ADC interrupt handler not called when configured via Peripherals page</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1605768#M51727</link>
      <description>&lt;P&gt;Hi, Raul, yes I have a function of that name in the program scope. &amp;nbsp;The "Copy to Clipboard" was one of the many attempts I tried to get the interrupt called. &amp;nbsp;As I mentioned, the interrupt handler is called when compiled like the example application. &amp;nbsp;But if I use the Peripherals configuration tool, my interrupt is never called.&lt;/P&gt;&lt;P&gt;However, I just got back from three days on the road and want to look at the user manual to see if I'm overlooking something simple, but I will follow up on this.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 04:48:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1605768#M51727</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-02-27T04:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC832 - ADC interrupt handler not called when configured via Peripherals page</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1606598#M51747</link>
      <description>&lt;P&gt;Hi Raul,&lt;/P&gt;&lt;P&gt;Ok, so I read through the LPC83x User Manual, the SDK example code, and my project code, and I see that the User Manual and SDK example code both mention and reference the PDRUNCFG register to power on the ADC. &amp;nbsp;However, the generated project code does *not* specifically turn on the ADC via the PDRUNCFG register. &amp;nbsp;I had to place the following call --&lt;/P&gt;&lt;PRE&gt;POWER_DisablePD(&lt;SPAN&gt;&lt;I&gt;kPDRUNCFG_PD_ADC0&lt;/I&gt;&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;Before&lt;/P&gt;&lt;PRE&gt;BOARD_InitBootPeripherals();&lt;/PRE&gt;&lt;P&gt;And then my project, including the ADC interrupts, would work. &amp;nbsp;That seems like it would be a bug of sorts, since I do specify in the Peripherals configuration page to "Perform auto-calibration on startup," but auto-calibration can't happen if the ADC is not powered on. &amp;nbsp;Or it should not be able to happen without the ADC being powered on.&lt;/P&gt;&lt;P&gt;At any rate, while I'm not getting the expected ADC values - which I'll investigate, but it's probably related to voltage level settings - the basic mechanics of the ADC are working, as near as I can tell, so I'm going to mark this issue as closed.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Feb 2023 06:25:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC832-ADC-interrupt-handler-not-called-when-configured-via/m-p/1606598#M51747</guid>
      <dc:creator>aaronm</dc:creator>
      <dc:date>2023-02-28T06:25:50Z</dc:date>
    </item>
  </channel>
</rss>

