<?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: Input PWM Duty cycle measurement Issue using S32k344 and MBDT 1.5</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1911478#M9309</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;First of all, from what I can see, the model in the archive sent is the default model provided in the toolbox. In this configuration, only the ICU channel is set, since the generated PWM signal is external. From the screenshot you refer to, I notice another Simulink model, more complex, whose configuration settings I cannot analyze to suggest improvements.&lt;BR /&gt;However, I can provide you a Simulink model that should help you to accomplish your objective. Unfortunately I don't have a signal generator to 100% simulate your application, but instead I generated an internal PWM signal of 100 Hz and making the physical connection through a wire from the PWM channel to the ICU channel.&lt;BR /&gt;In the model, the ICU channel and the PWM channel are configured as follows in the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1721313630806.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289191iA1328820EA63963C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dragostoma_0-1721313630806.png" alt="dragostoma_0-1721313630806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The generated PWM signal has the following characteristics:&lt;/P&gt;
&lt;P&gt;- Core clock frequency = 160 MHz&lt;/P&gt;
&lt;P&gt;- PWM default period = 10 000 ticks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1721314346795.png" style="width: 474px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289192i7AB17C7B4352A927/image-dimensions/474x367?v=v2" width="474" height="367" role="button" title="dragostoma_1-1721314346795.png" alt="dragostoma_1-1721314346795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- eMIOS 2 instance default period = 10000 ticks&lt;/P&gt;
&lt;P&gt;- eMIOS 2 instance clock divider = 160&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1721314494264.png" style="width: 474px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289194i25EF9FD0ACD46C89/image-dimensions/474x305?v=v2" width="474" height="305" role="button" title="dragostoma_2-1721314494264.png" alt="dragostoma_2-1721314494264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the PWM signal will be the same as your PWM signal externally generated:&lt;/P&gt;
&lt;P&gt;PWM Freq = 160 000 000 / 10 000 / 160 = 100 Hz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be able to ensure the correct connection, you must connect PTA19 to PTD26, so the ICU channel can actually measure the generated PWM signal.&lt;/P&gt;
&lt;P&gt;The results will look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1721316594167.png" style="width: 1022px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289200iCEFAE5557CCA4059/image-dimensions/1022x126?v=v2" width="1022" height="126" role="button" title="dragostoma_0-1721316594167.png" alt="dragostoma_0-1721316594167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_4-1721316026643.png" style="width: 924px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289199iA8D85107D80655D1/image-dimensions/924x433?v=v2" width="924" height="433" role="button" title="dragostoma_4-1721316026643.png" alt="dragostoma_4-1721316026643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can notice the variable duty cycle given from Simulink by using the Stateflow, and it varies between 25% and 75%. Also, the active time and period time could be seen.&lt;/P&gt;
&lt;P&gt;Now, if you connect your generated PWM signal instead of the one configured in the model, you should achieve in the FreeMASTER project a constant duty cycle of 50%, an active time of 500 and a period time of 1000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this model helps you in achieving your application goal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Jul 2024 15:30:12 GMT</pubDate>
    <dc:creator>dragostoma</dc:creator>
    <dc:date>2024-07-18T15:30:12Z</dc:date>
    <item>
      <title>Input PWM Duty cycle measurement Issue using S32k344 and MBDT 1.5</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1909558#M9305</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to measure the PWM Duty cycle using ICU and S32K344 processor with MBDT 1.5.&lt;/P&gt;&lt;P&gt;The input PWM(100Hz and 50% duty) is given on PTB3 pin of MCU and measured duty cycle is observed on FREEMASTER. I don't know about what exactly the active time &amp;amp; period time parameters represent. I have uploaded the images of Input PWM signal measured by HANTEK Oscilloscope &amp;amp; measured values by FREEMASTER with my SIMULINK model here.&lt;/P&gt;&lt;P&gt;Can anyone tell me about how to exactly measure input PWM Duty Cycle and Input Frequency&lt;/P&gt;&lt;P&gt;Thank You!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2024 08:17:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1909558#M9305</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-07-16T08:17:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input PWM Duty cycle measurement Issue using S32k344 and MBDT 1.5</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1910467#M9306</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The ICU Signal Measurement mode is measuring different times between various configurable edges.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the configuration tool, when the selected ICU channel is set to&amp;nbsp;&lt;STRONG&gt;ICU_MODE_SIGNAL_MEASUREMENT&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1721198208442.png" style="width: 503px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288878i6A0ED6A36089FDDD/image-dimensions/503x44?v=v2" width="503" height="44" role="button" title="dragostoma_1-1721198208442.png" alt="dragostoma_1-1721198208442.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;the following property is enabled.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1721198096686.png" style="width: 502px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288877i731CBE3A811107B7/image-dimensions/502x261?v=v2" width="502" height="261" role="button" title="dragostoma_0-1721198096686.png" alt="dragostoma_0-1721198096686.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The measurement property should be set between the above list, and the property can not be changed during runtime, so each channel has only one measurement purpose.&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;ICU_DUTY_CYCLE&amp;nbsp;&lt;/STRONG&gt;property works with the &lt;STRONG&gt;Icu_GetDutyCycleValues&amp;nbsp;&lt;/STRONG&gt;Simulink block. It is returning the a structure&amp;nbsp;&lt;SPAN&gt;that contains ICU Duty cycle parameters. It contains the values needed for&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;calculating duty cycles i.e Period time value and active time value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- &lt;STRONG&gt;Active Time&lt;/STRONG&gt;: this represents the duration during which the signal is in its "active" state (usually the high state for a digital signal). It is the time the signal remains at a high level during one cycle.&lt;BR /&gt;- &lt;STRONG&gt;Period Time&lt;/STRONG&gt;: this represents the total duration of one complete cycle of the signal, which includes both the active time and the inactive time (low state). It is the time from the start of one high state to the start of the next high state.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_4-1721199609493.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288887iCCCF5693149ADCB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dragostoma_4-1721199609493.png" alt="dragostoma_4-1721199609493.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The following picture illustrated the time definitions of a signal:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1721198968120.png" style="width: 528px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288881i5ABD361494E2D4ED/image-dimensions/528x124?v=v2" width="528" height="124" role="button" title="dragostoma_2-1721198968120.png" alt="dragostoma_2-1721198968120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;Duty Cycle&amp;nbsp;&lt;/STRONG&gt;represents the percentage of&amp;nbsp;&lt;STRONG&gt;Active Time&lt;/STRONG&gt; to&amp;nbsp;&lt;STRONG&gt;Period Time&amp;nbsp;&lt;/STRONG&gt;and has the following formula:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Duty Cycle = (Active Time / Period Time) * 100%&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The following picture illustrated the time definitions of a signal:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1721198968120.png" style="width: 528px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288881i5ABD361494E2D4ED/image-dimensions/528x124?v=v2" width="528" height="124" role="button" title="dragostoma_2-1721198968120.png" alt="dragostoma_2-1721198968120.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The&amp;nbsp;&lt;STRONG&gt;ICU_HIGH_TIME, ICU_LOW_TIME&amp;nbsp;&lt;/STRONG&gt;and&amp;nbsp;&lt;STRONG&gt;ICU_PERIOD_TIME&lt;/STRONG&gt; properties work with the&amp;nbsp;&lt;STRONG&gt;Icu_GetTimeElapsed&amp;nbsp;&lt;/STRONG&gt;Simulink block. It is returning the value of the time based on the CIU channel configuration.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_3-1721199396479.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288883i7691D065CA8999C6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dragostoma_3-1721199396479.png" alt="dragostoma_3-1721199396479.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the above information, you will find the following approach in the model example.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_5-1721201994469.png" style="width: 717px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288904iD7281BBCE5175072/image-dimensions/717x154?v=v2" width="717" height="154" role="button" title="dragostoma_5-1721201994469.png" alt="dragostoma_5-1721201994469.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Based on the&amp;nbsp;&lt;STRONG&gt;dutyCycleValues,&amp;nbsp;&lt;/STRONG&gt;represented by a bus signal, you can calculate the&amp;nbsp;&lt;STRONG&gt;dutyCycle&amp;nbsp;&lt;/STRONG&gt;percentage of your generated PWM signal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To understand the returned values, you should be aware of the following:&lt;/P&gt;
&lt;P&gt;- each ICU channel is configured based on an &lt;STRONG&gt;eMIOS&lt;/STRONG&gt; instance (IcueMios_0_Channels_9 in your case);&lt;/P&gt;
&lt;P&gt;- each eMIOS instance is configured based either on an external counter, or an internal counter. By using an external counter, an eMIOS bus selector must be configured (EMIOS_ICU_BUS_A in your case), which is based on a MCL master bus (EmiosMclMasterBus_0 in your case).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_6-1721202765925.png" style="width: 658px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/288911i632AE14A99C1A91E/image-dimensions/658x216?v=v2" width="658" height="216" role="button" title="dragostoma_6-1721202765925.png" alt="dragostoma_6-1721202765925.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- the Default period of the &lt;STRONG&gt;EmiosMclMasterBus&amp;nbsp;&lt;/STRONG&gt;used to configure the ICU channel should be in range 0-65535.&lt;/P&gt;
&lt;P&gt;To calculate the Frequency and the Period of the Master Bus Counter configured for the ICU channel, you should you the following formulas:&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;&lt;STRONG&gt;Frequency =&amp;nbsp;Core Clock Frequency / Master Bus Default Period / Emios Common Clock Divider Value / Master Bus Prescaler&lt;/STRONG&gt; -&amp;gt; [Hz]&lt;/P&gt;
&lt;P&gt;- &lt;STRONG&gt;Period =&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;1 / Frequency&lt;/STRONG&gt; -&amp;gt; [s]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In conclusion, to measure the PWM signal correctly, the eMIOS ICU needs to capture both the high and the low times of the PWM signal accurately. I hope the above explanations help in achieving your goal. If you have other questions, let us know.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 09:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1910467#M9306</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-07-17T09:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Input PWM Duty cycle measurement Issue using S32k344 and MBDT 1.5</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1911379#M9308</link>
      <description>Hello, &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199423"&gt;@dragostoma&lt;/a&gt;&lt;BR /&gt;I have done my calculations, Where&lt;BR /&gt;Core CLK = 160000000, Master Bus Default Period = 65535,&lt;BR /&gt;Emios Common CLK divider = 1 &amp;amp; Master Bus Prescaler =1 .&lt;BR /&gt;then Calculated Frequency = 2441 Hz &amp;amp; Period = 0.4 ms .&lt;BR /&gt;So when I feed an input PWM of 100Hz &amp;amp; 50% Duty, get active time = 24915 &amp;amp; period = 27171(Image is in prev post) which is not correct. So what can I do.</description>
      <pubDate>Thu, 18 Jul 2024 12:52:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1911379#M9308</guid>
      <dc:creator>RushikeshK_DC</dc:creator>
      <dc:date>2024-07-18T12:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Input PWM Duty cycle measurement Issue using S32k344 and MBDT 1.5</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1911478#M9309</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/235647"&gt;@RushikeshK_DC&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;First of all, from what I can see, the model in the archive sent is the default model provided in the toolbox. In this configuration, only the ICU channel is set, since the generated PWM signal is external. From the screenshot you refer to, I notice another Simulink model, more complex, whose configuration settings I cannot analyze to suggest improvements.&lt;BR /&gt;However, I can provide you a Simulink model that should help you to accomplish your objective. Unfortunately I don't have a signal generator to 100% simulate your application, but instead I generated an internal PWM signal of 100 Hz and making the physical connection through a wire from the PWM channel to the ICU channel.&lt;BR /&gt;In the model, the ICU channel and the PWM channel are configured as follows in the following table:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1721313630806.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289191iA1328820EA63963C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dragostoma_0-1721313630806.png" alt="dragostoma_0-1721313630806.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The generated PWM signal has the following characteristics:&lt;/P&gt;
&lt;P&gt;- Core clock frequency = 160 MHz&lt;/P&gt;
&lt;P&gt;- PWM default period = 10 000 ticks&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_1-1721314346795.png" style="width: 474px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289192i7AB17C7B4352A927/image-dimensions/474x367?v=v2" width="474" height="367" role="button" title="dragostoma_1-1721314346795.png" alt="dragostoma_1-1721314346795.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;- eMIOS 2 instance default period = 10000 ticks&lt;/P&gt;
&lt;P&gt;- eMIOS 2 instance clock divider = 160&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_2-1721314494264.png" style="width: 474px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289194i25EF9FD0ACD46C89/image-dimensions/474x305?v=v2" width="474" height="305" role="button" title="dragostoma_2-1721314494264.png" alt="dragostoma_2-1721314494264.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;So the PWM signal will be the same as your PWM signal externally generated:&lt;/P&gt;
&lt;P&gt;PWM Freq = 160 000 000 / 10 000 / 160 = 100 Hz&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be able to ensure the correct connection, you must connect PTA19 to PTD26, so the ICU channel can actually measure the generated PWM signal.&lt;/P&gt;
&lt;P&gt;The results will look like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_0-1721316594167.png" style="width: 1022px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289200iCEFAE5557CCA4059/image-dimensions/1022x126?v=v2" width="1022" height="126" role="button" title="dragostoma_0-1721316594167.png" alt="dragostoma_0-1721316594167.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dragostoma_4-1721316026643.png" style="width: 924px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/289199iA8D85107D80655D1/image-dimensions/924x433?v=v2" width="924" height="433" role="button" title="dragostoma_4-1721316026643.png" alt="dragostoma_4-1721316026643.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can notice the variable duty cycle given from Simulink by using the Stateflow, and it varies between 25% and 75%. Also, the active time and period time could be seen.&lt;/P&gt;
&lt;P&gt;Now, if you connect your generated PWM signal instead of the one configured in the model, you should achieve in the FreeMASTER project a constant duty cycle of 50%, an active time of 500 and a period time of 1000.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this model helps you in achieving your application goal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 15:30:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-PWM-Duty-cycle-measurement-Issue-using-S32k344-and-MBDT-1/m-p/1911478#M9309</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2024-07-18T15:30:12Z</dc:date>
    </item>
  </channel>
</rss>

