<?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: Output Compare Interrupt Not Firing in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030928#M15433</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I don't see anything obvious from this code snippet. OC function works fine in other aspects? And have you tried other interrupt sources (for instance PIT) to check whether you have properly working interrupts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jan 2020 12:19:06 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2020-01-29T12:19:06Z</dc:date>
    <item>
      <title>Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030927#M15432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using the TRK-MPC5634M board and Codewarrior to test an output compare.&lt;/P&gt;&lt;P&gt;I need to know when the OC is done, so I can check some other things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eTPU-&amp;gt;CHAN[0].SCR.B.CIS indicates that the interrupt has fired in the ETPU.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I missing in order to route the interrupt back to the processor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;partial below&lt;BR /&gt;void main(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; init();&lt;BR /&gt;&amp;nbsp; test();&lt;BR /&gt;&amp;nbsp; while(1){};&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void init(void)&lt;BR /&gt;{ &lt;BR /&gt;&amp;nbsp; etpuInit();&lt;BR /&gt;&amp;nbsp; INTC_InitINTCInterrupts();&lt;BR /&gt;&amp;nbsp; INTC_InstallINTCInterruptHandler(etpu_0_ISR, 68, 5); // interrupt for ETPU_0&amp;nbsp; (68)&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; fs_etpu_interrupt_enable(0);&lt;BR /&gt;&amp;nbsp; fs_etpu_clear_chan_interrupt_flag(0);&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; INTC .CPR.R = 0; &lt;BR /&gt;&amp;nbsp; asm(" wrteei 1");&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void test(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; SIU .GPDO[ETPU_A1_PIN].R ^= 1; // toggle output so I can see start&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fs_etpu_oc_init_immed(0,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // channel&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS_ETPU_PRIORITY_HIGH,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // priority&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS_OC_MATCH_TCR1,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // match timebase &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1000,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // offset1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS_ETPU_OC_PIN_HIGH_CAPTURE_TCR1,&amp;nbsp; // pin action&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10000,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // offset2&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS_ETPU_OC_PIN_LOW_CAPTURE_TCR1,&amp;nbsp;&amp;nbsp; // pin action&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FS_ETPU_OC_INIT_PIN_NO_CHANGE);&amp;nbsp;&amp;nbsp;&amp;nbsp; // init pin&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; fs_etpu_clear_chan_interrupt_flag(0);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;void etpu_0_ISR(void)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; SIU .GPDO[ETPU_A1_PIN ].R ^= 1;&lt;BR /&gt;&amp;nbsp; fs_etpu_clear_chan_interrupt_flag(0);&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2020 14:10:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030927#M15432</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-01-17T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030928#M15433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I don't see anything obvious from this code snippet. OC function works fine in other aspects? And have you tried other interrupt sources (for instance PIT) to check whether you have properly working interrupts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jan 2020 12:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030928#M15433</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-01-29T12:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030929#M15434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Other interrupts work fine. The OC works (i.e. the output toggles when it should). I just can't get the interrupt to fire.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2020 19:05:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030929#M15434</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-02-02T19:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030930#M15435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have just tried it and it works fine on my side.&lt;/P&gt;&lt;P&gt;&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/94843i68A1BA6B1E2B0E69/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;/P&gt;&lt;P&gt;I can share example code if needed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 15:37:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030930#M15435</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-02-25T15:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030931#M15436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please share your code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2020 20:16:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030931#M15436</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-03-12T20:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030932#M15437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am currently at home office without any hardware to check it but I believe I have attached the right code. Certain configuration in the main function, the rest configured with eTPU GCT, config file in the /src folder. Note that it is just raw state without any comments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 08:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030932#M15437</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-03-16T08:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030933#M15438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I ran your code. The interrupt does fire, but only once. At power-up the OC and the interrupt fire, but if you reload the OC (change I made) the interrupt does not fire. I checked eTPU-&amp;gt;CISR_A.B.CIS0 and it was still 1. I cleared it again (got 0) and the interrupt still did not fire again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 14:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030933#M15438</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-03-16T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030934#M15439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is not supposed to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you need periodic pulses, use function QOM function:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/docs/en/application-note/AN2857.pdf" title="https://www.nxp.com/docs/en/application-note/AN2857.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN2857.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 15:58:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030934#M15439</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2020-03-16T15:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030935#M15440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will look at that. What I want is a way to detect when the OC is done. (without polling it), so I can load it with the next event.&lt;/P&gt;&lt;P&gt;I guess I don't understand the purpose/implementation of the OC interrupt.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 17:03:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030935#M15440</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-03-16T17:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Output Compare Interrupt Not Firing</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030936#M15441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally figured out what I was missing. The default OC does not enable the interrupt.&lt;/P&gt;&lt;P&gt;If I add ETPU.CIER_A.B.CIE0=1 the interrupt fires at the end if the event. Just what I needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2020 20:21:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Output-Compare-Interrupt-Not-Firing/m-p/1030936#M15441</guid>
      <dc:creator>robertwynn</dc:creator>
      <dc:date>2020-04-16T20:21:43Z</dc:date>
    </item>
  </channel>
</rss>

