<?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: GPIO interrupt rising/falling edge in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077998#M15437</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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/106206i4D003501E6EDAB2F/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;P&gt;&lt;/P&gt;&lt;P&gt;GPIOC4 pin interrupt fonfiguration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107975iD3ABB6C8C24E716D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned int flag=0x01;&lt;BR /&gt;#pragma interrupt on&lt;BR /&gt;void GPIOC4_ISR(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//clear the GPIOC4 pending register&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_CLEAR_EDGE_SENSITIVE_INT_FLAG(GPIO_C,0x10); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//toggle GPIOE0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(flag)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_SET_PIN(GPIO_E,0x01); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_CLEAR_PIN(GPIO_E,0x01); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;flag^=0x01;&lt;BR /&gt;}&lt;BR /&gt;#pragma interrupt off&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2020 05:50:07 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2020-05-28T05:50:07Z</dc:date>
    <item>
      <title>GPIO interrupt rising/falling edge</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077996#M15435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to set GPIO (input) interrupt to be triggered based on rising/falling edge or steady state signal?&lt;BR /&gt;Im using GCT, code warrior 10.6, DSC MC56F82748&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2020 17:47:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077996#M15435</guid>
      <dc:creator>fasihahmed</dc:creator>
      <dc:date>2020-05-26T17:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt rising/falling edge</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077997#M15436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Fasih,&lt;/P&gt;&lt;P&gt;As you know that all the GPIO pins of MC56F827xx can be used to trigger interrupt, for the detailed inf, pls refer to the section:&lt;/P&gt;&lt;P&gt;34.2.6 GPIO Interrupt Enable Register (GPIOx_IENR)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_25.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108235i3F354C4B6A84AC83/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_25.png" alt="pastedImage_25.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;34.2.7 GPIO Interrupt Polarity Register (GPIOx_IPOLR)&lt;/P&gt;&lt;P&gt;The register GPIOx_IPOLR can set up falling/rising edge to trigger interrupt of GPIO pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the interrupt vector table for MC56F827xx:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_26.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/108236iB7A0002C337094FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_26.png" alt="pastedImage_26.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is only one interrupt vector table for 16 GPIO pins, so in the ISR, you have to check which GPIO pin leads to the interrupt by checking the GPIO Interrupt Pending Register.&lt;/P&gt;&lt;P&gt;I will try to develop an example code based on GCT tools.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 03:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077997#M15436</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-05-28T03:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO interrupt rising/falling edge</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077998#M15437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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/106206i4D003501E6EDAB2F/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;P&gt;&lt;/P&gt;&lt;P&gt;GPIOC4 pin interrupt fonfiguration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/107975iD3ABB6C8C24E716D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;unsigned int flag=0x01;&lt;BR /&gt;#pragma interrupt on&lt;BR /&gt;void GPIOC4_ISR(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//clear the GPIOC4 pending register&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_CLEAR_EDGE_SENSITIVE_INT_FLAG(GPIO_C,0x10); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//toggle GPIOE0&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if(flag)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_SET_PIN(GPIO_E,0x01); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;ioctlGPIO_CLEAR_PIN(GPIO_E,0x01); &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;flag^=0x01;&lt;BR /&gt;}&lt;BR /&gt;#pragma interrupt off&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2020 05:50:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/GPIO-interrupt-rising-falling-edge/m-p/1077998#M15437</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2020-05-28T05:50:07Z</dc:date>
    </item>
  </channel>
</rss>

