<?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 Re: FLEXPWM Dead Time Update Block [MPC574x Model Based Design Toobox] in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853177#M2745</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &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;It works perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Apr 2019 12:38:01 GMT</pubDate>
    <dc:creator>abhishek_kumar1</dc:creator>
    <dc:date>2019-04-09T12:38:01Z</dc:date>
    <item>
      <title>FLEXPWM Dead Time Update Block [MPC574x Model Based Design Toobox]</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853175#M2743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use DeadTime Update block. (picture below). I have also attached the model and the logged data from the Oscilloscope.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64748i985169719C7DE67A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After every 1000 microseconds the Dead Time must switch between 1000ns and 5000ns (its just for tests).&lt;/P&gt;&lt;P&gt;For this I use PIT and Matlab block to get the change in state for 1000ns dead time block and 5000ns Dead time Block. (function below), Rising edge of the function takes it to 1000ns and falling edge takes it to 5000 ns dead time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function [count, switchToLongDeadTime] = fcn(countIn)&lt;/P&gt;&lt;P&gt;if countIn == 20&lt;BR /&gt; count = 1;&lt;BR /&gt;else&lt;BR /&gt; count = countIn +1;&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;if count &amp;lt;= 10&lt;BR /&gt; switchToLongDeadTime = 1;&lt;BR /&gt;else&lt;BR /&gt; switchToLongDeadTime = 0;&lt;BR /&gt;end&lt;BR /&gt;end&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the dead time remains 100 ns which was set in the 'FlexPWM_Config' block. (picture below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64512i34E5CF550FDB0245/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/64515i286CAD9032D69A71/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some how the dead time is not updated as I would wish to.&lt;/P&gt;&lt;P&gt;I hope we can have a solution for this.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 11:15:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853175#M2743</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-04-09T11:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXPWM Dead Time Update Block [MPC574x Model Based Design Toobox]</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853176#M2744</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/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, I found the following issues in your model:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The input of the PWM block is 50 instead of 0.5&lt;/P&gt;&lt;P&gt;2. The PIT Channel priority is 0 which means that the interrupt is disabled... so please use a value grater than 1 the ISR priority mechanism is different on PowerPC than ARM: 31 is the most higher priority.&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. I also changed the PIT Channel period for showing the signals on the scope.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also changed the PWM pins to avoid the level shifter.&lt;/P&gt;&lt;P&gt;&lt;div class="lia-vid-container video-embed-center"&gt;&lt;div id="lia-vid-6185806317001w320h240r15" class="lia-video-brightcove-player-container"&gt;&lt;video-js data-video-id="6185806317001" data-account="6153537070001" data-player="default" data-embed="default" class="vjs-fluid" controls="" data-application-id="" style="width: 100%; height: 100%;"&gt;&lt;/video-js&gt;&lt;/div&gt;&lt;script src="https://players.brightcove.net/6153537070001/default_default/index.min.js"&gt;&lt;/script&gt;&lt;script&gt;(function() {  var wrapper = document.getElementById('lia-vid-6185806317001w320h240r15');  var videoEl = wrapper ? wrapper.querySelector('video-js') : null;  if (videoEl) {     if (window.videojs) {       window.videojs(videoEl).ready(function() {         this.on('loadedmetadata', function() {           this.el().querySelectorAll('.vjs-load-progress div[data-start]').forEach(function(bar) {             bar.setAttribute('role', 'presentation');             bar.setAttribute('aria-hidden', 'true');           });         });       });     }  }})();&lt;/script&gt;&lt;a class="video-embed-link" href="https://community.nxp.com/t5/video/gallerypage/video-id/6185806317001"&gt;(view in My Videos)&lt;/a&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 11:57:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853176#M2744</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-04-09T11:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: FLEXPWM Dead Time Update Block [MPC574x Model Based Design Toobox]</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853177#M2745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &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;It works perfectly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2019 12:38:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/FLEXPWM-Dead-Time-Update-Block-MPC574x-Model-Based-Design-Toobox/m-p/853177#M2745</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-04-09T12:38:01Z</dc:date>
    </item>
  </channel>
</rss>

