<?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 do I make CodeWarrior for MCUs generate a skeleton for an ISR in events.c with a specific pin associated with it? in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424155#M11738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nancy,&lt;/P&gt;&lt;P&gt;maybe this article can help you:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/04/13/tutorial-user-interrupts-with-processor-expert/" title="http://mcuoneclipse.com/2014/04/13/tutorial-user-interrupts-with-processor-expert/"&gt;Tutorial: User Interrupts with Processor Expert | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jul 2015 16:47:34 GMT</pubDate>
    <dc:creator>BlackNight</dc:creator>
    <dc:date>2015-07-19T16:47:34Z</dc:date>
    <item>
      <title>How do I make CodeWarrior for MCUs generate a skeleton for an ISR in events.c with a specific pin associated with it?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424154#M11737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CodeWarrior for MCUs v. 10.6, creating an application for the Kinetis FRDM-KE06Z with Processor Expert.&amp;nbsp; I have used the TimerUnit_LDD and CAN interrupts successfully. Now I want to identify a particular pin (PTI0/IRQ/UART2_RX) which has been configured by our hardware engineer to be used for interrupts on discrete inputs. I can't find a component for a user-defined interrupt: when I try to create an InterruptVector component, it tries to create a NMI and I get the error messages shown in the attachment.&amp;nbsp; CodeWarrior always generates an events.c that has as its first ISR void Cpu_OnNMI(void) without an InterruptVector component, but for this I can't see how to assign the pin that the discretes are connected to--there doesn't seem to be a component for that, it's the CPU itself I'd guess. When I enable maskable interrupts in the CPU, it builds successfully but there's no corresponding skeleton-function in events.c.&amp;nbsp; If I create an InterruptVector component and change the interrupt vector to INT_IRQ, for example, there's no place to specify the pin this interrupt would be associated with. I can't find any info in the MCU FAQ manual.&amp;nbsp; I understand the theory of how interrupts work but I've never created an interrupt "from scratch", only via the built-in components in CW PE, so I'm not entirely sure I've looked in the right places for this. Could someone point me in the right direction to get started?&amp;nbsp; Thanks.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #7f0055; font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 14:01:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424154#M11737</guid>
      <dc:creator>NNeff</dc:creator>
      <dc:date>2015-07-19T14:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make CodeWarrior for MCUs generate a skeleton for an ISR in events.c with a specific pin associated with it?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424155#M11738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nancy,&lt;/P&gt;&lt;P&gt;maybe this article can help you:&lt;/P&gt;&lt;P&gt;&lt;A href="http://mcuoneclipse.com/2014/04/13/tutorial-user-interrupts-with-processor-expert/" title="http://mcuoneclipse.com/2014/04/13/tutorial-user-interrupts-with-processor-expert/"&gt;Tutorial: User Interrupts with Processor Expert | MCU on Eclipse&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 16:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424155#M11738</guid>
      <dc:creator>BlackNight</dc:creator>
      <dc:date>2015-07-19T16:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make CodeWarrior for MCUs generate a skeleton for an ISR in events.c with a specific pin associated with it?</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424156#M11739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Erich!&amp;nbsp; It seems to be working using an ExtInt_LDD.&amp;nbsp; I won't get hardware for a couple of weeks to actually test it, but I do have an "_OnInterrupt" event in my events.c now, so I can continue coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just FYI, the tutorial was written for CW 10.4; in 10.6, there is no "Interrupts" section for the Init_GPIO component, so I couldn't figure out how to use that, even though the tutorial says that Init_GPIO is preferred when one needs to set those values. I expect I can write directly to the applicable registers (when I figure out what they are) to get the correct settings for the pull-resistor, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 17:51:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/How-do-I-make-CodeWarrior-for-MCUs-generate-a-skeleton-for-an/m-p/424156#M11739</guid>
      <dc:creator>NNeff</dc:creator>
      <dc:date>2015-07-19T17:51:43Z</dc:date>
    </item>
  </channel>
</rss>

