<?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: S32K14 - Example to send and read PWM signal?</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1856654#M9029</link>
    <description>&lt;P&gt;Hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have managed to set this up on the S32K144EVB but I am only able to read either duty cycle or frequency at the moment. How do I go about measuring frequency at the same time as the frequency changes and therefore the duty cycle needs to be scaled depending on the frequency. I will attach the modified version of the able example you mentioned. This output the duty cycle but I have fixed the 10Hz frequency as it is known:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Poley_0-1714426328385.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276514iD82D2CDA72914348/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Poley_0-1714426328385.png" alt="Poley_0-1714426328385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, how do I detect frequencies 0-10Hz? It seems from the UINT16 calcs that the lowest frequency that can be read is 9.54Hz? Frequency = 1/(65535/625000).&lt;/P&gt;&lt;P&gt;Here is the range I need to detect and calculate duty cycle in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Poley_1-1714426758402.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276515iB5A849337C46D22D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Poley_1-1714426758402.png" alt="Poley_1-1714426758402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 29 Apr 2024 21:41:00 GMT</pubDate>
    <dc:creator>Poley</dc:creator>
    <dc:date>2024-04-29T21:41:00Z</dc:date>
    <item>
      <title>S32K14 - Example to send and read PWM signal?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1685888#M8353</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I go about sending out a PWM signal on 1 and then reciew a different PWM on a seperate PIN and work out the duty cycle in Simulink?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2023 15:32:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1685888#M8353</guid>
      <dc:creator>Poley</dc:creator>
      <dc:date>2023-07-11T15:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: S32K14 - Example to send and read PWM signal?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1689471#M8364</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183842"&gt;@Poley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We might have the right example for you in our toolbox, which does exactly what you want, generating the PWM example on PWM 0 and reading the characteristics on other pins, using the Dual Edge Capture blocks for MBDT for S32K1xx. The example is called&amp;nbsp;ftm_dual_edge_s32k14x and it is delivered in our toolbox.&lt;/P&gt;
&lt;P&gt;Please let us know if this is what you are looking for!&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_0-1689860411225.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/232718i7FC8774721C1B6D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mariuslucianand_0-1689860411225.png" alt="mariuslucianand_0-1689860411225.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Marius&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, 20 Jul 2023 13:40:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1689471#M8364</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2023-07-20T13:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: S32K14 - Example to send and read PWM signal?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1856654#M9029</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have managed to set this up on the S32K144EVB but I am only able to read either duty cycle or frequency at the moment. How do I go about measuring frequency at the same time as the frequency changes and therefore the duty cycle needs to be scaled depending on the frequency. I will attach the modified version of the able example you mentioned. This output the duty cycle but I have fixed the 10Hz frequency as it is known:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Poley_0-1714426328385.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276514iD82D2CDA72914348/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Poley_0-1714426328385.png" alt="Poley_0-1714426328385.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Also, how do I detect frequencies 0-10Hz? It seems from the UINT16 calcs that the lowest frequency that can be read is 9.54Hz? Frequency = 1/(65535/625000).&lt;/P&gt;&lt;P&gt;Here is the range I need to detect and calculate duty cycle in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Poley_1-1714426758402.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276515iB5A849337C46D22D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Poley_1-1714426758402.png" alt="Poley_1-1714426758402.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 21:41:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/S32K14-Example-to-send-and-read-PWM-signal/m-p/1856654#M9029</guid>
      <dc:creator>Poley</dc:creator>
      <dc:date>2024-04-29T21:41:00Z</dc:date>
    </item>
  </channel>
</rss>

