<?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 E-Timer Interrupt ISR, all options not available (MBD for MPC57x)  in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/E-Timer-Interrupt-ISR-all-options-not-available-MBD-for-MPC57x/m-p/991010#M3900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MBD toolbox for MPC5744P version 3.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple interrupts for Etimer and I can enable them in MBD (right side picture).&lt;/P&gt;&lt;P&gt;I wqant to take different action on for different interrupts but there is no option in eTimer ISR to select the specific &lt;SPAN&gt;interrupts&amp;nbsp;&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, counter may overflow while an edge is detected. I want to detect the number of overflows so I can use them in a calculation. But I can not as I do not know the ISR works for which &lt;SPAN&gt;interrupt&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help on this.&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/92334i2945FB705CA3FE42/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&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/92370i04E06E84B698D0F7/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;ISR HANDLER&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/92391iC714E4E18DAF4182/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;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Nov 2019 13:43:58 GMT</pubDate>
    <dc:creator>abhishek_kumar1</dc:creator>
    <dc:date>2019-11-14T13:43:58Z</dc:date>
    <item>
      <title>E-Timer Interrupt ISR, all options not available (MBD for MPC57x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/E-Timer-Interrupt-ISR-all-options-not-available-MBD-for-MPC57x/m-p/991010#M3900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using MBD toolbox for MPC5744P version 3.0.&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are multiple interrupts for Etimer and I can enable them in MBD (right side picture).&lt;/P&gt;&lt;P&gt;I wqant to take different action on for different interrupts but there is no option in eTimer ISR to select the specific &lt;SPAN&gt;interrupts&amp;nbsp;&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, counter may overflow while an edge is detected. I want to detect the number of overflows so I can use them in a calculation. But I can not as I do not know the ISR works for which &lt;SPAN&gt;interrupt&lt;/SPAN&gt;.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help on this.&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/92334i2945FB705CA3FE42/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&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/92370i04E06E84B698D0F7/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;ISR HANDLER&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/92391iC714E4E18DAF4182/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;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌ &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/rafael.barbosa@chassisbrakes.com"&gt;rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2019 13:43:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/E-Timer-Interrupt-ISR-all-options-not-available-MBD-for-MPC57x/m-p/991010#M3900</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-11-14T13:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: E-Timer Interrupt ISR, all options not available (MBD for MPC57x)</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/E-Timer-Interrupt-ISR-all-options-not-available-MBD-for-MPC57x/m-p/991011#M3901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each eTimer_Config block, initializes and creates code for the Module X, Channel Y selected in the General Tab. All the checked interrupts in the Interrupts tab are enabled for that particular channel.&amp;nbsp;&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/94348i1FFD7A3A569B95E2/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;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/93748iA9D660886BB322F0/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;For example, the images attached configuration initializes the Input Capture 2 interrupt and Overflow interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, for each Channel of the Module, you need to add the eTimer_ISR block, that will handle the interrupt request for the Module X, Channel Y. Each channel has only one interrupt vector, so all the Interrupts sources are muxed together to trigger only one interrupt, Here is&amp;nbsp;ETIMER0_TC1IR_IRQHandler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/93975i58589C744836E6F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Now, what it is important here, is that the eTimer_ISR, returns an interrupt status, which contains the STS status register value. So the user need to include in the S-function attached to the ISR Handler output a logic in order to differentiate the interrupt source. Normally, when an interrupt appears the bit corresponding to that interrupt source is set. For more information, please go to the Reference Manual For MPC5744P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/94144iE217CA2134A4B593/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also, it is important to know that all the flags are cleared before exiting the interrupt routine.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Nov 2019 14:15:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/E-Timer-Interrupt-ISR-all-options-not-available-MBD-for-MPC57x/m-p/991011#M3901</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-11-15T14:15:59Z</dc:date>
    </item>
  </channel>
</rss>

