<?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 CTU Interrupt MPC5643L in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/CTU-Interrupt-MPC5643L/m-p/423587#M960</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to implement a current messuring for an ac inductive motor by using the CTU to store the adc results in FIFO0. So for the adc results i enable Trigger0 and T0_ADCE at THCR1 register to start adc list with Trigger0. I also have programmed the adc list and everything else to set up triggers and to read out FIFO0 with all stored adc results. And now I struggle to implement the CTU interrrupt to get the stored adc results. So I enable Trigger1 and for the interrupt I enable Trigger 1 interrupt at CTUIR. To Update the changes i reload the double buffered registers. At next step I wrote a new .c File with a read out function of FIFO0 and put this function at slot 195 in the interrupt vector table. So everything should be set up but if I test my software i get no data from my read outs.&amp;nbsp; I hope you can help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Jul 2015 09:12:32 GMT</pubDate>
    <dc:creator>tommaaß</dc:creator>
    <dc:date>2015-07-19T09:12:32Z</dc:date>
    <item>
      <title>CTU Interrupt MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/CTU-Interrupt-MPC5643L/m-p/423587#M960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I try to implement a current messuring for an ac inductive motor by using the CTU to store the adc results in FIFO0. So for the adc results i enable Trigger0 and T0_ADCE at THCR1 register to start adc list with Trigger0. I also have programmed the adc list and everything else to set up triggers and to read out FIFO0 with all stored adc results. And now I struggle to implement the CTU interrrupt to get the stored adc results. So I enable Trigger1 and for the interrupt I enable Trigger 1 interrupt at CTUIR. To Update the changes i reload the double buffered registers. At next step I wrote a new .c File with a read out function of FIFO0 and put this function at slot 195 in the interrupt vector table. So everything should be set up but if I test my software i get no data from my read outs.&amp;nbsp; I hope you can help me.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jul 2015 09:12:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/CTU-Interrupt-MPC5643L/m-p/423587#M960</guid>
      <dc:creator>tommaaß</dc:creator>
      <dc:date>2015-07-19T09:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: CTU Interrupt MPC5643L</title>
      <link>https://community.nxp.com/t5/MPC5xxx/CTU-Interrupt-MPC5643L/m-p/423588#M961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can refer to following post:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-102559"&gt;https://community.freescale.com/docs/DOC-102559&lt;/A&gt;&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;This demo example does the same you have except of DMA is used to read the CTU FIFO finally.&lt;/P&gt;&lt;P&gt;But you can use the FIFO overflow interrupt instead of DMA if needed. This is also mentioned in the document in fact.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case do not use Trigger 1 interrupt but use FIFO0 interrupt (vector 202) and set CTU FIFO registers properly, means set FIFO threshold and enable overflow interrupt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 08:02:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/CTU-Interrupt-MPC5643L/m-p/423588#M961</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2015-07-21T08:02:02Z</dc:date>
    </item>
  </channel>
</rss>

