<?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: External Interrupt  in CodeWarrior Development Tools</title>
    <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763494#M6721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used what you have sent me with a simple example that evidently at one time worked. My issue is the interrupt handles function. I am not sure how I should read what i assume is a flag that goes high? It looks like in the code fired is the interrupt pin going high? Im just not sure at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Jan 2018 00:55:28 GMT</pubDate>
    <dc:creator>anthonyverfaill</dc:creator>
    <dc:date>2018-01-31T00:55:28Z</dc:date>
    <item>
      <title>External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763490#M6717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the KL25Z with code warrior (10.5) for the IDE. I need a external push button that will interrupt my code so that I can have some timers and other bits performed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone have a simple push button interrupt example I could take a look at? Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jan 2018 21:02:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763490#M6717</guid>
      <dc:creator>anthonyverfaill</dc:creator>
      <dc:date>2018-01-26T21:02:21Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763491#M6718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="311325" data-username="anthonyverfaillie" href="https://community.nxp.com/people/anthonyverfaillie"&gt;Anthony &lt;/A&gt;,&lt;/P&gt;&lt;P&gt;You can configure a gpio interrupt , then in the interrupt function you can performed&lt;/P&gt;&lt;P&gt;some actions.&lt;/P&gt;&lt;P&gt;About the example code , you can add Processor Expert component for GPIO, there is&lt;/P&gt;&lt;P&gt;a demo code you can refer to :&lt;/P&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/30393i95AAAA334F0652BD/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;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 03:19:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763491#M6718</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-01-29T03:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763492#M6719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply. I unfortunately am lacking in the skills to pull&lt;/P&gt;&lt;P&gt;this off. Could you please provide some more details? For instance , for&lt;/P&gt;&lt;P&gt;the interrupt do i tie the pin to ground via the button? Is that what&lt;/P&gt;&lt;P&gt;triggers the interrupt?&lt;/P&gt;&lt;P&gt;I am doing a project and need a simple push button that can stop my code I&lt;/P&gt;&lt;P&gt;already have completed.&lt;/P&gt;&lt;P&gt;The idea is the “user” can interact via this simple button and in a sense&lt;/P&gt;&lt;P&gt;communicat with the device. Just a true false situation.&lt;/P&gt;&lt;P&gt;I have tried and tried but not having much luck with it. Any help would be&lt;/P&gt;&lt;P&gt;greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2018 03:59:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763492#M6719</guid>
      <dc:creator>anthonyverfaill</dc:creator>
      <dc:date>2018-01-29T03:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763493#M6720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="311325" data-username="anthonyverfaillie" href="https://community.nxp.com/people/anthonyverfaillie"&gt;Anthony Verfaillie&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;1. There are five methods can trigger the interrupt ， please have a look at Reference manual for your chip:&lt;/P&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/32839iFC8001EE05357C86/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;For example , if you want to connect one pin to ground to trigger an interrupt, you can configure the IRQC to&lt;/P&gt;&lt;P&gt;1000 .&lt;/P&gt;&lt;P&gt;2. Sorry I haven't install CW10.5, I use the latest verion CW11, while it is the same , I create a simple&lt;/P&gt;&lt;P&gt;project , about the pin interrupt,&amp;nbsp; the main initialize code as below:&lt;/P&gt;&lt;P&gt;&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/32670iB47494595F6B6F0B/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;If you do not want to use Processor Expert ,you can refer to the code write your own code .&lt;/P&gt;&lt;P&gt;If there is problem on your code, you can send it to me .&lt;/P&gt;&lt;P&gt;And add your interrupt code under the below function, or you can also write by yourself.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32885iE6EA311B98D2F292/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2018 07:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763493#M6720</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-01-30T07:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763494#M6721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used what you have sent me with a simple example that evidently at one time worked. My issue is the interrupt handles function. I am not sure how I should read what i assume is a flag that goes high? It looks like in the code fired is the interrupt pin going high? Im just not sure at all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Jan 2018 00:55:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763494#M6721</guid>
      <dc:creator>anthonyverfaill</dc:creator>
      <dc:date>2018-01-31T00:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763495#M6722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp; Anthony, &lt;/P&gt;&lt;P&gt;Sorry I just can't know your question very clearly now.&lt;/P&gt;&lt;P&gt;Do you mean when run your code ,when the PTA0 is high, then run into interrupt function ?&lt;/P&gt;&lt;P&gt;How do you judged ?&lt;/P&gt;&lt;P&gt;If I misunderstood your question , please describe it more detail , thank you .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 03:43:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763495#M6722</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2018-02-02T03:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: External Interrupt</title>
      <link>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763496#M6723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply. I have resolved my problem with the accelerometer. However, I do have a new question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use a push button switch that i will connect to ground and pin PTA5. i then want to read PTA5 when I press the button and have my program (do something) &lt;/P&gt;&lt;P&gt;Setting are below. Should I set the pull up resistor also? And how do I read PTA5, should I read the memory location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                /* Turn on clock to PortA module */&lt;/P&gt;&lt;P&gt;		SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		/* Set the PTB18 pin multiplexer to GPIO mode */&lt;/P&gt;&lt;P&gt;		PORTA_PCR5 = PORT_PCR_MUX(1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;		/* Set the pins direction to input */&lt;/P&gt;&lt;P&gt;		GPIOA_PDDR |= (0&amp;lt;&amp;lt;5);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2018 04:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-Development-Tools/External-Interrupt/m-p/763496#M6723</guid>
      <dc:creator>anthonyverfaill</dc:creator>
      <dc:date>2018-02-02T04:08:59Z</dc:date>
    </item>
  </channel>
</rss>

