<?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>MPC5xxxのトピックRe: MPC5744P CTU dual-conversion problem</title>
    <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619442#M5345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The CTU configuration seems to me correct.&lt;/P&gt;&lt;P&gt;However the reading of FIFO is not clear enough to me.&lt;/P&gt;&lt;P&gt;Do you read it when FIFO0 is overflow?&lt;/P&gt;&lt;P&gt;Do you use interrupt or DMA to read FIFO0?&lt;/P&gt;&lt;P&gt;Could you explain me the reading so I will have full picture and can make a test if there is any issue?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Nov 2016 09:26:43 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2016-11-24T09:26:43Z</dc:date>
    <item>
      <title>MPC5744P CTU dual-conversion problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619441#M5344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having a problem with the CTU dual conversion, while having no problems in single conversion.&lt;/P&gt;&lt;P&gt;I have configured the CTU for triggering on PWM reload and I am having dual ADC conversion on a trigger.&lt;/P&gt;&lt;P&gt;(I am also generating the external output trigger for debugging / trigger generation monitoring.)&lt;/P&gt;&lt;P&gt;CTU is setup in triggered mode, where I am using just the first trigger, with one ADC dual conversion command in the list.&lt;/P&gt;&lt;P&gt;I have set the LC in the next command to make this the only command executed.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The result are stored in the FIFO0, which has 16 32-bit entries.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem seems to be that when all 16 entries are read from the FIFO, plus 2 more, the values read from the FIFO start&amp;nbsp;to be 0..&lt;/P&gt;&lt;P&gt;The triggers are still generated, according to the external output trigger. FIFO status register&amp;nbsp;reports an overflow and full FIFO.&lt;/P&gt;&lt;P&gt;Error flag register only reports a ERRCMP, which is more like a informative status that the counter reached the value at which it should stop.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anybody help me on this matter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2016 15:46:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619441#M5344</guid>
      <dc:creator>hrvojeerjavec</dc:creator>
      <dc:date>2016-11-23T15:46:52Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P CTU dual-conversion problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619442#M5345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The CTU configuration seems to me correct.&lt;/P&gt;&lt;P&gt;However the reading of FIFO is not clear enough to me.&lt;/P&gt;&lt;P&gt;Do you read it when FIFO0 is overflow?&lt;/P&gt;&lt;P&gt;Do you use interrupt or DMA to read FIFO0?&lt;/P&gt;&lt;P&gt;Could you explain me the reading so I will have full picture and can make a test if there is any issue?&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 09:26:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619442#M5345</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2016-11-24T09:26:43Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5744P CTU dual-conversion problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619443#M5346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, it seems I figured. I was reading the values from the FIFO and printing them to the UART, but it was done from the task. I was too slow to remove values from the FIFO, and when the FIFO got full, I read a value, the FIFO got free space for just one reading -&amp;gt; ADC0. When dual conversion occured, just ADC0 value got stored to FIFO and ADC1 value got discarded. So as soon as I pulled 16 readings from the FIFO I was getting values from just one ADC. The reason why they where 0 is because ADC0 pin was not initialized...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help Peter, your mention of interrupt or DMA usage rang the bell.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Nov 2016 10:07:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/MPC5744P-CTU-dual-conversion-problem/m-p/619443#M5346</guid>
      <dc:creator>hrvojeerjavec</dc:creator>
      <dc:date>2016-11-24T10:07:30Z</dc:date>
    </item>
  </channel>
</rss>

