<?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: Interrupt Vector Number in MPC5777M in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597962#M4372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution you try to create is definitely not correct way, how interrupts should work or be implemented.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct way is to implement interrupt using peripheral interrupt registers and INTC controller configuration. Another way is to use polling, it means check peripheral interrupt flag by software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the following example. It shows, how to use FlexCAN with interrupts. Example is not created for MPC5777M and MCAN module, but for MPC5775K and FlexCAN module, but the idea of using interrupts is the same.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329943"&gt;Example MPC5775K FlexCAN_with_interrupts_v1.1 S32DS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For correct polling method implementation, please see the example below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333811"&gt;Example MPC5777M MCAN simple TX/RX GHS614&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not try to use the way you designed. It can cause unpredictable microcontroller behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Apr 2017 07:54:01 GMT</pubDate>
    <dc:creator>martin_kovar</dc:creator>
    <dc:date>2017-04-12T07:54:01Z</dc:date>
    <item>
      <title>Interrupt Vector Number in MPC5777M</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597958#M4368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/PetrS"&gt;PetrS&lt;/A&gt;&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/martinkovar"&gt;martinkovar&lt;/A&gt;, Is there anyway that I can read IRQ (through register) numbers during run time for CAN node in MPC5777M .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose for M_CAN_1 the IRQ are 688 and 689.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I want to read these numbers run time and raise the particular ISR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 11:58:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597958#M4368</guid>
      <dc:creator>yalamandadosaky</dc:creator>
      <dc:date>2017-04-10T11:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Vector Number in MPC5777M</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597959#M4369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Update?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 15:24:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597959#M4369</guid>
      <dc:creator>yalamandadosaky</dc:creator>
      <dc:date>2017-04-11T15:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Vector Number in MPC5777M</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597960#M4370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am afraid your question does not make too much sense to us. Could you please ask different way letting us to understand your question? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 15:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597960#M4370</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-04-11T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Vector Number in MPC5777M</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597961#M4371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , OK . My requirement is like single ISR function to be used in my function and I want to call this function by checking IRQ number so that I can pass the parameters corresponding to that IRQ number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Example&lt;/STRONG&gt; :&lt;/P&gt;&lt;P&gt;ISR(x)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;/// code&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;if(IRQ == 688u)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;ISR(M_CAN_1)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;else if (IRQ == 689u)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;ISR(M_CAN2)&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So through which register I can read IRQ number that caused the interrupt during runtime ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Apr 2017 15:48:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597961#M4371</guid>
      <dc:creator>yalamandadosaky</dc:creator>
      <dc:date>2017-04-11T15:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt Vector Number in MPC5777M</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597962#M4372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution you try to create is definitely not correct way, how interrupts should work or be implemented.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct way is to implement interrupt using peripheral interrupt registers and INTC controller configuration. Another way is to use polling, it means check peripheral interrupt flag by software.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at the following example. It shows, how to use FlexCAN with interrupts. Example is not created for MPC5777M and MCAN module, but for MPC5775K and FlexCAN module, but the idea of using interrupts is the same.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329943"&gt;Example MPC5775K FlexCAN_with_interrupts_v1.1 S32DS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For correct polling method implementation, please see the example below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-333811"&gt;Example MPC5777M MCAN simple TX/RX GHS614&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do not try to use the way you designed. It can cause unpredictable microcontroller behavior.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Martin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Apr 2017 07:54:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Interrupt-Vector-Number-in-MPC5777M/m-p/597962#M4372</guid>
      <dc:creator>martin_kovar</dc:creator>
      <dc:date>2017-04-12T07:54:01Z</dc:date>
    </item>
  </channel>
</rss>

