<?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 KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2140837#M67738</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working with the &lt;STRONG&gt;KV4x series MCU (MKV46F128VLH16)&lt;/STRONG&gt; and using &lt;STRONG&gt;Flex PWM submodule 0&lt;/STRONG&gt; to generate a &lt;STRONG&gt;complementary signed center-aligned PWM&lt;/STRONG&gt; signal using &lt;STRONG&gt;PWMA and PWMB&lt;/STRONG&gt;, with deadtime inserted.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;My Goal:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When the &lt;STRONG&gt;PWM timer is stopped&lt;/STRONG&gt;, I want &lt;STRONG&gt;both PWMA and PWMB to remain LOW&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When the PWM is &lt;STRONG&gt;running&lt;/STRONG&gt;, I want &lt;STRONG&gt;true complementary behavior with deadtime&lt;/STRONG&gt; — meaning PWMA and PWMB must &lt;STRONG&gt;never be HIGH at the same time&lt;/STRONG&gt;.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;My Configuration:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;PWMA is configured as k PWM High True&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;PWMB is initially configured as k PWM Low True so that both outputs are LOW when PWM is stopped.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Before starting&lt;/STRONG&gt; the PWM timer, I &lt;STRONG&gt;clear the POLB bit&lt;/STRONG&gt; (set PWMB to High True) so that it complements PWMA.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;After stopping&lt;/STRONG&gt;, I &lt;STRONG&gt;set POLB again&lt;/STRONG&gt; to return PWMB to Low True so both outputs go LOW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This setup ensures:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Idle state&lt;/STRONG&gt;: both outputs LOW&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Running state&lt;/STRONG&gt;: complementary PWM behavior with deadtime&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;STRONG&gt;Observed Behavior (with Scope Images Attached):&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_white-heavy-check-mark" title=":white_heavy_check_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 1 – First Power-Up:&lt;/STRONG&gt;&lt;BR /&gt;On initial power-up, PWM starts cleanly with correct complementary waveforms. Both PWMA and PWMB operate as expected with deadtime — no glitches.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_cross-mark" title=":cross_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 2 – After Stopping and Restarting (with POLB toggled):&lt;/STRONG&gt;&lt;BR /&gt;When PWM is restarted after a stop (with POLB changed to enable complementarity), &lt;STRONG&gt;PWMB outputs a single, long HIGH pulse (~10 µs)&lt;/STRONG&gt; at the very beginning, before returning to correct PWM behavior.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_white-heavy-check-mark" title=":white_heavy_check_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 3 – Restart Without Changing POLB:&lt;/STRONG&gt;&lt;BR /&gt;If I skip changing POLB before restarting the PWM, there is &lt;STRONG&gt;no glitch&lt;/STRONG&gt;, but &lt;STRONG&gt;PWMA and PWMB can both stay HIGH at the same time&lt;/STRONG&gt;, violating the complementary condition I require.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Why does &lt;STRONG&gt;PWMB generate a stretched HIGH pulse (~10 µs)&lt;/STRONG&gt; after restart, only when POLB is toggled?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Fri, 25 Jul 2025 10:11:31 GMT</pubDate>
    <dc:creator>EmbedALM</dc:creator>
    <dc:date>2025-07-25T10:11:31Z</dc:date>
    <item>
      <title>KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2140837#M67738</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working with the &lt;STRONG&gt;KV4x series MCU (MKV46F128VLH16)&lt;/STRONG&gt; and using &lt;STRONG&gt;Flex PWM submodule 0&lt;/STRONG&gt; to generate a &lt;STRONG&gt;complementary signed center-aligned PWM&lt;/STRONG&gt; signal using &lt;STRONG&gt;PWMA and PWMB&lt;/STRONG&gt;, with deadtime inserted.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;My Goal:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;When the &lt;STRONG&gt;PWM timer is stopped&lt;/STRONG&gt;, I want &lt;STRONG&gt;both PWMA and PWMB to remain LOW&lt;/STRONG&gt;.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;When the PWM is &lt;STRONG&gt;running&lt;/STRONG&gt;, I want &lt;STRONG&gt;true complementary behavior with deadtime&lt;/STRONG&gt; — meaning PWMA and PWMB must &lt;STRONG&gt;never be HIGH at the same time&lt;/STRONG&gt;.&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;My Configuration:&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;PWMA is configured as k PWM High True&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;PWMB is initially configured as k PWM Low True so that both outputs are LOW when PWM is stopped.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Before starting&lt;/STRONG&gt; the PWM timer, I &lt;STRONG&gt;clear the POLB bit&lt;/STRONG&gt; (set PWMB to High True) so that it complements PWMA.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;After stopping&lt;/STRONG&gt;, I &lt;STRONG&gt;set POLB again&lt;/STRONG&gt; to return PWMB to Low True so both outputs go LOW.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This setup ensures:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Idle state&lt;/STRONG&gt;: both outputs LOW&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Running state&lt;/STRONG&gt;: complementary PWM behavior with deadtime&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;H3&gt;&lt;STRONG&gt;Observed Behavior (with Scope Images Attached):&lt;/STRONG&gt;&lt;/H3&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_white-heavy-check-mark" title=":white_heavy_check_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 1 – First Power-Up:&lt;/STRONG&gt;&lt;BR /&gt;On initial power-up, PWM starts cleanly with correct complementary waveforms. Both PWMA and PWMB operate as expected with deadtime — no glitches.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_cross-mark" title=":cross_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 2 – After Stopping and Restarting (with POLB toggled):&lt;/STRONG&gt;&lt;BR /&gt;When PWM is restarted after a stop (with POLB changed to enable complementarity), &lt;STRONG&gt;PWMB outputs a single, long HIGH pulse (~10 µs)&lt;/STRONG&gt; at the very beginning, before returning to correct PWM behavior.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;LI-EMOJI id="lia_white-heavy-check-mark" title=":white_heavy_check_mark:"&gt;&lt;/LI-EMOJI&gt;&lt;STRONG&gt;Image 3 – Restart Without Changing POLB:&lt;/STRONG&gt;&lt;BR /&gt;If I skip changing POLB before restarting the PWM, there is &lt;STRONG&gt;no glitch&lt;/STRONG&gt;, but &lt;STRONG&gt;PWMA and PWMB can both stay HIGH at the same time&lt;/STRONG&gt;, violating the complementary condition I require.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Why does &lt;STRONG&gt;PWMB generate a stretched HIGH pulse (~10 µs)&lt;/STRONG&gt; after restart, only when POLB is toggled?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 25 Jul 2025 10:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2140837#M67738</guid>
      <dc:creator>EmbedALM</dc:creator>
      <dc:date>2025-07-25T10:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2143181#M67746</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242989"&gt;@EmbedALM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your post.&amp;nbsp;Could you provide the project to me? I will help check it.&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 04:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2143181#M67746</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2025-07-30T04:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2158767#M67839</link>
      <description>&lt;P&gt;This is the Imported SDK Example with some changes in pwm.c.....Board is twrkv46f150m..SDK version is 2.8.0....under driver example..PWM&lt;/P&gt;</description>
      <pubDate>Wed, 27 Aug 2025 05:16:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2158767#M67839</guid>
      <dc:creator>EmbedALM</dc:creator>
      <dc:date>2025-08-27T05:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2160362#M67849</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This is the Imported SDK Example with some changes in pwm.c.....Board is twrkv46f150m..SDK version is 2.8.0....under driver example..PWM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 05:02:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2160362#M67849</guid>
      <dc:creator>EmbedALM</dc:creator>
      <dc:date>2025-08-29T05:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2160398#M67850</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/242989"&gt;@EmbedALM&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Could you please also let me know which demo you are using?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Celeste_Liu_0-1756448308137.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/354707i965D214A6948D4C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Celeste_Liu_0-1756448308137.png" alt="Celeste_Liu_0-1756448308137.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BRs,&lt;/P&gt;
&lt;P&gt;Celeste&lt;/P&gt;</description>
      <pubDate>Fri, 29 Aug 2025 06:18:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2160398#M67850</guid>
      <dc:creator>Celeste_Liu</dc:creator>
      <dc:date>2025-08-29T06:18:39Z</dc:date>
    </item>
    <item>
      <title>Re: KV4x FlexPWM: Unwanted Initial HIGH Pulse on PWMB After Restart with Polarity Change</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2167467#M67876</link>
      <description>&lt;P&gt;&lt;SPAN&gt;under driver example..PWM&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Sep 2025 05:49:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KV4x-FlexPWM-Unwanted-Initial-HIGH-Pulse-on-PWMB-After-Restart/m-p/2167467#M67876</guid>
      <dc:creator>EmbedALM</dc:creator>
      <dc:date>2025-09-11T05:49:52Z</dc:date>
    </item>
  </channel>
</rss>

