<?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 2 IRQ on PORTC in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696514#M7482</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with the TWR-K22F120M Development board.&amp;nbsp; I have looked at some of the Demo code but cannot find out how to do what I wish to do.&amp;nbsp; I would like to have an interrupt occur if Switch 1 or Switch 3 is pushed and I would like to know which switch was pressed.&amp;nbsp; I tried to duplicate the interrupt code fhat is used to interrupt when switch 3 is pushed but I receive and error that PORTC is redefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do I write code to have an interrupt trigger if either switch 1 or switch 3 is pushed and to know which switch was pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2017 17:57:23 GMT</pubDate>
    <dc:creator>haroldvogel</dc:creator>
    <dc:date>2017-10-02T17:57:23Z</dc:date>
    <item>
      <title>2 IRQ on PORTC</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696514#M7482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working with the TWR-K22F120M Development board.&amp;nbsp; I have looked at some of the Demo code but cannot find out how to do what I wish to do.&amp;nbsp; I would like to have an interrupt occur if Switch 1 or Switch 3 is pushed and I would like to know which switch was pressed.&amp;nbsp; I tried to duplicate the interrupt code fhat is used to interrupt when switch 3 is pushed but I receive and error that PORTC is redefined.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So how do I write code to have an interrupt trigger if either switch 1 or switch 3 is pushed and to know which switch was pressed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 17:57:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696514#M7482</guid>
      <dc:creator>haroldvogel</dc:creator>
      <dc:date>2017-10-02T17:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IRQ on PORTC</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696515#M7483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I forgot to add that I am using FreeRTOS on the board.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 17:58:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696515#M7483</guid>
      <dc:creator>haroldvogel</dc:creator>
      <dc:date>2017-10-02T17:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: 2 IRQ on PORTC</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696516#M7484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harold,&lt;/P&gt;&lt;P&gt;You can use a gpio in PORTA group as swith1, and use a gpio in PORTC group as swith3. They are different isr source.&lt;/P&gt;&lt;P&gt;OS will not affect your interrupt function. All the unused interrupt address in the vector table is announced as [weak]. Which means if you announced you own interrupt service function, the default interrupt address is ignored. So if you received an error that the PORTC is redefined, I think this may cause by improper code or multi defined code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Oct 2017 07:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/2-IRQ-on-PORTC/m-p/696516#M7484</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2017-10-09T07:43:43Z</dc:date>
    </item>
  </channel>
</rss>

