<?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>Model-Based Design Toolbox (MBDT)のトピックRe: PWM Timing and Signal Generation on MKV4xx microprocessors</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775138#M2103</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I'm right the image above from the reference Manual is only a example for the generated Output signals and are&amp;nbsp;independant.&lt;/P&gt;&lt;P&gt;In case of Center aligned and complementary&amp;nbsp;Output&amp;nbsp;the signals from PWM_A&amp;nbsp;and PWM_B&amp;nbsp;would be like&amp;nbsp;this ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PWM center aligned bearbeitet.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33802i5711E06F202A5334/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWM center aligned bearbeitet.png" alt="PWM center aligned bearbeitet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So for starting the ADC conversation with the rising edge of PWM_A I have to choose VAL2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Options center aligned, edge alligned or assymetrical I can only find in the "Independant PWM output block".&lt;/P&gt;&lt;P&gt;But I want to use the &lt;EM&gt;"Complementary eFlexPWM output block" &lt;/EM&gt;or the &lt;EM&gt;"Three-phase eFlexPWM output block".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So what kind of output signal is generated from These two blocks ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Nov 2017 09:53:02 GMT</pubDate>
    <dc:creator>lethuer</dc:creator>
    <dc:date>2017-11-14T09:53:02Z</dc:date>
    <item>
      <title>PWM Timing and Signal Generation on MKV4xx microprocessors</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775136#M2101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this really helps ! Thank you so much so far !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I&amp;nbsp;have one question to the timing in the Reference Manual.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32933i82886A9F4C4075E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my opinion&amp;nbsp;one PWM period is from INIT to VAL1.&lt;/P&gt;&lt;P&gt;This would mean that with a duty cycle of 50 percent the on time starts at INIT and ends at VAL0 ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;So for starting the adc conversation at each on time from the PWM I have to set VAL1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or at which VAL starts the duty cyle ? I think testing this should be possible with the example "kv4xf_eflexpwm_isr" ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the PWM_A and PWM_B above are only the timers and not the configured output pins in the block you can see in the picture blow. Is that correct so far ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32973iE5F9DC9EDD97B60F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Nov 2017 23:11:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775136#M2101</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2017-11-13T23:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Timing and Signal Generation on MKV4xx microprocessors</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775137#M2102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lethuer2"&gt;lethuer2&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In regards with your questions:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;In my opinion&amp;nbsp;one PWM period is from INIT to VAL1.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;This would mean that with a duty cycle of 50 percent the on time starts at INIT and ends at VAL0 ?&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Indeed the PWM Counter starts at INIT and rolls over at VAL1 measuring the one PWM period.&lt;/P&gt;&lt;P&gt;The diagram you are referring to represent the "center aligned" PWM generation when the PWM high and low are aligned in the center to the VAL0.&lt;/P&gt;&lt;P&gt;Your description is valid for edge-aligned PWM generation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So for starting the adc conversation at each on time from the PWM I have to set VAL1 ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It depends on with VALx you choose as Output trigger. If you select VAL1 then YES, the ADC conversion will start when FTM counter value = VAL1 (end of PWM period in this particular case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;So the PWM_A and PWM_B above are only the timers and not the configured output pins in the block you can see in the picture blow. Is that correct so far ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, that PWM_A and PWM_B are the actual PWM signals that drives the power transitors. PWM_A = A[1] output pin and PWM_B = B[1] output pin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 08:51:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775137#M2102</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-11-14T08:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Timing and Signal Generation on MKV4xx microprocessors</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775138#M2103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if I'm right the image above from the reference Manual is only a example for the generated Output signals and are&amp;nbsp;independant.&lt;/P&gt;&lt;P&gt;In case of Center aligned and complementary&amp;nbsp;Output&amp;nbsp;the signals from PWM_A&amp;nbsp;and PWM_B&amp;nbsp;would be like&amp;nbsp;this ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PWM center aligned bearbeitet.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/33802i5711E06F202A5334/image-size/large?v=v2&amp;amp;px=999" role="button" title="PWM center aligned bearbeitet.png" alt="PWM center aligned bearbeitet.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So for starting the ADC conversation with the rising edge of PWM_A I have to choose VAL2 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Options center aligned, edge alligned or assymetrical I can only find in the "Independant PWM output block".&lt;/P&gt;&lt;P&gt;But I want to use the &lt;EM&gt;"Complementary eFlexPWM output block" &lt;/EM&gt;or the &lt;EM&gt;"Three-phase eFlexPWM output block".&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So what kind of output signal is generated from These two blocks ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 09:53:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775138#M2103</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2017-11-14T09:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Timing and Signal Generation on MKV4xx microprocessors</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775139#M2104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/lethuer2"&gt;lethuer2&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Sorry for delay - it seams that i've overlooked your question.&lt;/P&gt;&lt;P&gt;For the Complementary and 3-Phase eFlexPWM blocks the PWM generation mode is hardcoded - "CENTER ALIGNED" type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a hint: you can try to build a small demo model, compile it an check the generated code for&amp;nbsp;pwma_sub_module_pwm_param_t structure initialization. All the generated code is based on the Kinetis SDK drivers, therefore you could use SDK documentation as resource.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Nov 2017 09:35:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775139#M2104</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-11-20T09:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: PWM Timing and Signal Generation on MKV4xx microprocessors</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775140#M2105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/dumitru-daniel.popa"&gt;dumitru-daniel.popa&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again I have a question for the current sensing.&lt;/P&gt;&lt;P&gt;Like you explained in &lt;A _jive_internal="true" href="https://community.nxp.com/thread/469445"&gt;Module 6: Current Sensing&lt;/A&gt;&amp;nbsp;the sensing must be at the time where the&amp;nbsp;Low-Side IGBT is on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the moment&amp;nbsp;I trigger the ADC with the PWM command at&amp;nbsp;VAL0 (the middle of PWM_A).&lt;/P&gt;&lt;P&gt;If I'm right the picture shows PWM_A high side IGBT ??&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Unbenannt.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/18649iD962726225E52DFD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Unbenannt.PNG" alt="Unbenannt.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;So instead of this I should better trigger the ADC&amp;nbsp;with VAL1, which in complementary PWM mode should be&amp;nbsp;the middle of&amp;nbsp;the on state of the low side IGBT&amp;nbsp;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Feb 2018 13:07:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/PWM-Timing-and-Signal-Generation-on-MKV4xx-microprocessors/m-p/775140#M2105</guid>
      <dc:creator>lethuer</dc:creator>
      <dc:date>2018-02-22T13:07:01Z</dc:date>
    </item>
  </channel>
</rss>

