<?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: ISR Self Identification in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466238#M11757</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should be able to switch ISR code on Build options tab available from CPU component, details below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59622iD7D3C07958FA417F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 May 2016 10:10:10 GMT</pubDate>
    <dc:creator>vfilip</dc:creator>
    <dc:date>2016-05-31T10:10:10Z</dc:date>
    <item>
      <title>ISR Self Identification</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466237#M11756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;We are using S12ZVMC128 MCU on our custom board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;There are about 25 or so interrupts which we are not handling which means the code is generated in CPU.c by PE. The code is set in PE configuration and is common for all ISR that it generates. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;There is some common error handling we are doing for all these unhandled interrupts. &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;Now we don't want to over ride and write unique code for each of these ISR. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;So we want some way that the ISR code (which is same for all ISRs) can determine which interrupt it is servicing &lt;/SPAN&gt;&lt;SPAN style="color: #222222; font-family: arial, sans-serif; font-size: 12.8px;"&gt;without writing a different code for each ISR. Basically we want to identify the interrupt within the ISR.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 09:32:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466237#M11756</guid>
      <dc:creator>manishsangram</dc:creator>
      <dc:date>2016-05-31T09:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: ISR Self Identification</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466238#M11757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you should be able to switch ISR code on Build options tab available from CPU component, details below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/59622iD7D3C07958FA417F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Vojtech Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 10:10:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466238#M11757</guid>
      <dc:creator>vfilip</dc:creator>
      <dc:date>2016-05-31T10:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: ISR Self Identification</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466239#M11758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vojtech,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are already writing code in the build options tab for the ISR. The question is not that. The question is that since all the ISR have the same code but I want to log the actual interrupt that took place how can we do that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 May 2016 13:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466239#M11758</guid>
      <dc:creator>manishsangram</dc:creator>
      <dc:date>2016-05-31T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: ISR Self Identification</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466240#M11759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manish,&lt;/P&gt;&lt;P&gt;Here is example of interrupt catcher for your inspiration:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-330312"&gt;S12Z Interrupt catcher for unexpected interrupts&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All unhandled interrupts are forwarded into one routine, but global variable isrNumber contains vector number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Radek&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>Tue, 31 May 2016 15:50:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/ISR-Self-Identification/m-p/466240#M11759</guid>
      <dc:creator>RadekS</dc:creator>
      <dc:date>2016-05-31T15:50:52Z</dc:date>
    </item>
  </channel>
</rss>

