<?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: DEVKIT-MPC5744P  PWM -CTU-ADC synchronize problem</title>
    <link>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742218#M10257</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;我也在做和你一样的事 T^T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;对应的ISR只进入了一次，而且唯一一次采到的电压值存在FIFO里却读不出来，莫名其妙。。。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;怀疑的几个点：&lt;/P&gt;&lt;P&gt;1.PWM发出的MRS信号没有周期性的发送到CTU；&lt;/P&gt;&lt;P&gt;2.CTU中的Trigger没有周期性的触发；&lt;/P&gt;&lt;P&gt;3.Command List中的ADC指令没有周期性触发；&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;因为上述三个点都有对应的中断，我就想着看看各自能不能正常触发中断，我都进行了测试，结果对应的中断都无法正常进入。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;不知您那边可有进展，请多指教。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Mar 2018 15:34:43 GMT</pubDate>
    <dc:creator>maxlee</dc:creator>
    <dc:date>2018-03-09T15:34:43Z</dc:date>
    <item>
      <title>DEVKIT-MPC5744P  PWM -CTU-ADC synchronize problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742217#M10256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to read the potentiometer voltage (&amp;nbsp;ADC1 Channel 6 on PE12&amp;nbsp; ) on the development&amp;nbsp;board for MPC5744P&amp;nbsp;by PWM -CTU-ADC synchronization.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that ADC seems only read once.That is,&amp;nbsp; it doesn't continuously read&amp;nbsp;the ADC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the S32 studio IDE.&lt;/P&gt;&lt;P&gt;and the code I configured is based on&amp;nbsp;the example&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-104570"&gt;Example MPC5744P FlexPWM CTU ADC synchronization&lt;/A&gt;&amp;nbsp;and motor control example of MPC5744P.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initialization code is attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't find what's wrong with the setting, so please help. Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jan 2018 03:12:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742217#M10256</guid>
      <dc:creator>yiling</dc:creator>
      <dc:date>2018-01-22T03:12:45Z</dc:date>
    </item>
    <item>
      <title>Re: DEVKIT-MPC5744P  PWM -CTU-ADC synchronize problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742218#M10257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;我也在做和你一样的事 T^T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;对应的ISR只进入了一次，而且唯一一次采到的电压值存在FIFO里却读不出来，莫名其妙。。。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;怀疑的几个点：&lt;/P&gt;&lt;P&gt;1.PWM发出的MRS信号没有周期性的发送到CTU；&lt;/P&gt;&lt;P&gt;2.CTU中的Trigger没有周期性的触发；&lt;/P&gt;&lt;P&gt;3.Command List中的ADC指令没有周期性触发；&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;因为上述三个点都有对应的中断，我就想着看看各自能不能正常触发中断，我都进行了测试，结果对应的中断都无法正常进入。&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;不知您那边可有进展，请多指教。&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Mar 2018 15:34:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742218#M10257</guid>
      <dc:creator>maxlee</dc:creator>
      <dc:date>2018-03-09T15:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: DEVKIT-MPC5744P  PWM -CTU-ADC synchronize problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742219#M10258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Somehow, I solved the problem by setting a faster ADC clock as 80MHz.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Register settings is&amp;nbsp;listed below.&lt;/P&gt;&lt;P&gt;MC_CGM.AC0_DC2.R = 0x80010000; // ADC_CLK : Enable aux clk 0 div by 2 … (80 MHz)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also check&amp;nbsp;Error Flag Register (CTU_EFR) to see if there are any error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 05:21:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742219#M10258</guid>
      <dc:creator>yiling</dc:creator>
      <dc:date>2018-03-12T05:21:36Z</dc:date>
    </item>
    <item>
      <title>Re: DEVKIT-MPC5744P  PWM -CTU-ADC synchronize problem</title>
      <link>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742220#M10259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think the key point of this problem is the setting of the registers which could be automatically cleared by the hardware itself, such like&amp;nbsp;CTU_0.CR.B.GRE, FlexPWM_0.MCTRL.B.LDOK and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That means user have to set these bits appropriately every time the ISR is entered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 06:12:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/DEVKIT-MPC5744P-PWM-CTU-ADC-synchronize-problem/m-p/742220#M10259</guid>
      <dc:creator>maxlee</dc:creator>
      <dc:date>2018-03-12T06:12:48Z</dc:date>
    </item>
  </channel>
</rss>

