<?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 Understanding FTM CPWM in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Understanding-FTM-CPWM/m-p/1586873#M20189</link>
    <description>&lt;P&gt;I am looking for a better understanding to something that I am seeing from the PWM output on the FTM in Center Aligned PWM Mode.&lt;/P&gt;&lt;P&gt;From what I read in the reference manual, if the ELSB = 1, and ELSA = 0, then the FTM PWM is set on the channel match during the down count, and cleared on the channel match of the up count.&lt;/P&gt;&lt;P&gt;However, I see on the scope the PWM set on the channel match of the up count, and cleared on the channel match of the down count.&lt;/P&gt;&lt;P&gt;Here is a capture of the scope showing a 80% duty cycle pulse on FTM CH0 (shown in the bottom red Ch 7 on scope).&amp;nbsp; The pink (Ch 2 on scope) are the INITTRIGs from the FTM when the FTM counter reaches 0 (CNTMIN = 1).&amp;nbsp; As you can see, the pulse is centered around the MOD value of the FTM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMIN-working--00000.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208190i29844050A9AF5B8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMIN-working--00000.jpg" alt="CNTMIN-working--00000.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Here is my complete configuration, let me know if I am missing something with my current configuration of FTM3 that is making me misunderstand what I am doing(I know it shows CNTMAX instead of CNTMIN is set, but this is because I was doing other experiments when I took these pictures.&amp;nbsp; No other configuration settings were changed for the scope picture):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208260i11FCC78381704871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_1.PNG" alt="CNTMAX_After_Pulse_Function_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208191i42C51213FB8B7462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_2.PNG" alt="CNTMAX_After_Pulse_Function_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_3.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208194i5CF3B5863EA6F0CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_3.PNG" alt="CNTMAX_After_Pulse_Function_3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_4.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208192i1FDFF2E1816AE13F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_4.PNG" alt="CNTMAX_After_Pulse_Function_4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
    <pubDate>Tue, 24 Jan 2023 17:44:38 GMT</pubDate>
    <dc:creator>sean_dvorscak</dc:creator>
    <dc:date>2023-01-24T17:44:38Z</dc:date>
    <item>
      <title>Understanding FTM CPWM</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-FTM-CPWM/m-p/1586873#M20189</link>
      <description>&lt;P&gt;I am looking for a better understanding to something that I am seeing from the PWM output on the FTM in Center Aligned PWM Mode.&lt;/P&gt;&lt;P&gt;From what I read in the reference manual, if the ELSB = 1, and ELSA = 0, then the FTM PWM is set on the channel match during the down count, and cleared on the channel match of the up count.&lt;/P&gt;&lt;P&gt;However, I see on the scope the PWM set on the channel match of the up count, and cleared on the channel match of the down count.&lt;/P&gt;&lt;P&gt;Here is a capture of the scope showing a 80% duty cycle pulse on FTM CH0 (shown in the bottom red Ch 7 on scope).&amp;nbsp; The pink (Ch 2 on scope) are the INITTRIGs from the FTM when the FTM counter reaches 0 (CNTMIN = 1).&amp;nbsp; As you can see, the pulse is centered around the MOD value of the FTM:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMIN-working--00000.jpg" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208190i29844050A9AF5B8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMIN-working--00000.jpg" alt="CNTMIN-working--00000.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; Here is my complete configuration, let me know if I am missing something with my current configuration of FTM3 that is making me misunderstand what I am doing(I know it shows CNTMAX instead of CNTMIN is set, but this is because I was doing other experiments when I took these pictures.&amp;nbsp; No other configuration settings were changed for the scope picture):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208260i11FCC78381704871/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_1.PNG" alt="CNTMAX_After_Pulse_Function_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208191i42C51213FB8B7462/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_2.PNG" alt="CNTMAX_After_Pulse_Function_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_3.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208194i5CF3B5863EA6F0CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_3.PNG" alt="CNTMAX_After_Pulse_Function_3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CNTMAX_After_Pulse_Function_4.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208192i1FDFF2E1816AE13F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CNTMAX_After_Pulse_Function_4.PNG" alt="CNTMAX_After_Pulse_Function_4.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   &lt;/P&gt;</description>
      <pubDate>Tue, 24 Jan 2023 17:44:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-FTM-CPWM/m-p/1586873#M20189</guid>
      <dc:creator>sean_dvorscak</dc:creator>
      <dc:date>2023-01-24T17:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Understanding FTM CPWM</title>
      <link>https://community.nxp.com/t5/S32K/Understanding-FTM-CPWM/m-p/1587557#M20211</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/90401"&gt;@sean_dvorscak&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm not able to replicate it.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1674641599663.png" style="width: 796px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208307i4B2E52A923C935A9/image-dimensions/796x158?v=v2" width="796" height="158" role="button" title="danielmartynek_0-1674641599663.png" alt="danielmartynek_0-1674641599663.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you share the whole project so that I can test it on my side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;BR, Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 10:14:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Understanding-FTM-CPWM/m-p/1587557#M20211</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-01-25T10:14:24Z</dc:date>
    </item>
  </channel>
</rss>

