<?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 to use GPIO interrupt and output wave from GPIO? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267717#M44770</link>
    <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp; Thank you so much. I found the example code and it really helped me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still have two questions for that example code.&lt;/P&gt;&lt;P&gt;#define TEST_BUTTON_PORT 0&lt;BR /&gt;#define TEST_BUTTON_BIT 7&lt;BR /&gt;#define TEST_BUTTON_PIN_PORT 2&lt;BR /&gt;#define TEST_BUTTON_PIN_BIT 7&lt;BR /&gt;#define TEST_BUTTON_MODE_FUNC SCU_MODE_FUNC0&lt;/P&gt;&lt;P&gt;I found PIN_PORT and PIN_BIT on the datasheet. but I can't figure out what is&amp;nbsp;TEST_BUTTON_PORT and&amp;nbsp;TEST_BUTTON_BIT? And which document should I read for&amp;nbsp;TEST_BUTTON_MODE_FUNC?&lt;/P&gt;&lt;P&gt;So I still need your help. And thank you for helping me &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Apr 2021 01:45:44 GMT</pubDate>
    <dc:creator>JiaAn</dc:creator>
    <dc:date>2021-04-26T01:45:44Z</dc:date>
    <item>
      <title>How to use GPIO interrupt and output wave from GPIO?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267001#M44752</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;LPC chip is a new thing to me. I want to trig interrupt by a pin and interrupt will output wave from another pin. But I am stuck. The code is too different between LPC4370 and the MCU I used before.&lt;BR /&gt;I can't find an example code about GPIO interrupt. I did try Google but unfortunately, the codes I googled can't work on my board.&lt;BR /&gt;Can anyone please help me point out which documents should I read or where can I get an example code that can work on LPC4370?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 03:30:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267001#M44752</guid>
      <dc:creator>JiaAn</dc:creator>
      <dc:date>2021-04-23T03:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPIO interrupt and output wave from GPIO?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267048#M44755</link>
      <description>&lt;P&gt;I just figure out that I can output GPIO by using these code:&lt;/P&gt;&lt;P&gt;Chip_GPIO_SetPinDIROutput(LPC_GPIO_PORT, 3, 4); //Set pin direction&lt;BR /&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 3, 4, false); // Output low&lt;BR /&gt;Chip_GPIO_SetPinState(LPC_GPIO_PORT, 3, 4, true); // Output high&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still don't know how to use GPIO to trig interrupt. Still need help. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 05:32:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267048#M44755</guid>
      <dc:creator>JiaAn</dc:creator>
      <dc:date>2021-04-23T05:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPIO interrupt and output wave from GPIO?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267215#M44760</link>
      <description>&lt;P&gt;Hello JiaAn,&lt;/P&gt;
&lt;P&gt;Please download LPCopen for lpc4370, there is GPIO interrupt demo, you can directly run it on your chip.&lt;/P&gt;
&lt;P&gt;Download from:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" target="_blank"&gt;https://www.nxp.com/design/microcontrollers-developer-resources/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX&lt;/A&gt;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;It support MCUXpresso IDE, KEIL, IAR, recommend the first one, it is free and support by NXP. After download , you can find the gpio demo.&lt;/P&gt;
&lt;P&gt;Download IDE from: &lt;A href="https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE" target="_blank"&gt;https://www.nxp.com/design/software/development-software/mcuxpresso-software-and-tools-/mcuxpresso-integrated-development-environment-ide:MCUXpresso-IDE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And in fact, if you install MCUxpresso IDE, the lpcopen is inside it by default, I take a video about how to open it under MCXUpresso IDE for you,&lt;/P&gt;
&lt;P&gt;please see my attachment.&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 09:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267215#M44760</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-04-23T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPIO interrupt and output wave from GPIO?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267717#M44770</link>
      <description>&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp; Thank you so much. I found the example code and it really helped me!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I still have two questions for that example code.&lt;/P&gt;&lt;P&gt;#define TEST_BUTTON_PORT 0&lt;BR /&gt;#define TEST_BUTTON_BIT 7&lt;BR /&gt;#define TEST_BUTTON_PIN_PORT 2&lt;BR /&gt;#define TEST_BUTTON_PIN_BIT 7&lt;BR /&gt;#define TEST_BUTTON_MODE_FUNC SCU_MODE_FUNC0&lt;/P&gt;&lt;P&gt;I found PIN_PORT and PIN_BIT on the datasheet. but I can't figure out what is&amp;nbsp;TEST_BUTTON_PORT and&amp;nbsp;TEST_BUTTON_BIT? And which document should I read for&amp;nbsp;TEST_BUTTON_MODE_FUNC?&lt;/P&gt;&lt;P&gt;So I still need your help. And thank you for helping me &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 01:45:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267717#M44770</guid>
      <dc:creator>JiaAn</dc:creator>
      <dc:date>2021-04-26T01:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use GPIO interrupt and output wave from GPIO?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267892#M44772</link>
      <description>&lt;P&gt;Hello JiaAn,&lt;/P&gt;
&lt;P&gt;This just a defined name in the code, it is the same with PIN_PORT and PIN_BIT.&lt;/P&gt;
&lt;P&gt;For example&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;EM&gt;#define TEST_BUTTON_PORT 0 ,&lt;/EM&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;this means PORT0 .&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;#define TEST_BUTTON_MODE_FUNC SCU_MODE_FUNC0&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This means config this pin as FUNC0. You can find&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;#define SCU_MODE_FUNC0 0x0 /*!&amp;lt; Selects pin function 0 */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2021 06:54:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-to-use-GPIO-interrupt-and-output-wave-from-GPIO/m-p/1267892#M44772</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2021-04-26T06:54:32Z</dc:date>
    </item>
  </channel>
</rss>

