<?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>S32K中的主题 Drive WS2811 RGB LED with S32K116</title>
    <link>https://community.nxp.com/t5/S32K/Drive-WS2811-RGB-LED-with-S32K116/m-p/1775835#M29675</link>
    <description>&lt;P class="lia-align-justify"&gt;Hello Team I have a query regarding controlling the PWM count while generating PWM signal of 800 KHz to drive WS2811 with S32K116 controller. I want to send the exact number of pulses say 24,&amp;nbsp; but the pulse generated are more than 24.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;I am getting the waveform of 800 KHz but since there is no Repetition counter (as there in STM32 controller), I am not able to control the pulse count which I want to send.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Also while trying with the One Shot Timers to generate the pulse I was not able to generate a pulse below 10 us.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Is there any limitation from the hardware side for generating a waveform above 100 KHz?&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Can there a way or an alternative to do the same with S32K116 controller to drive WS2811?&lt;/P&gt;</description>
    <pubDate>Sat, 16 Dec 2023 11:23:52 GMT</pubDate>
    <dc:creator>Saar</dc:creator>
    <dc:date>2023-12-16T11:23:52Z</dc:date>
    <item>
      <title>Drive WS2811 RGB LED with S32K116</title>
      <link>https://community.nxp.com/t5/S32K/Drive-WS2811-RGB-LED-with-S32K116/m-p/1775835#M29675</link>
      <description>&lt;P class="lia-align-justify"&gt;Hello Team I have a query regarding controlling the PWM count while generating PWM signal of 800 KHz to drive WS2811 with S32K116 controller. I want to send the exact number of pulses say 24,&amp;nbsp; but the pulse generated are more than 24.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;I am getting the waveform of 800 KHz but since there is no Repetition counter (as there in STM32 controller), I am not able to control the pulse count which I want to send.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Also while trying with the One Shot Timers to generate the pulse I was not able to generate a pulse below 10 us.&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Is there any limitation from the hardware side for generating a waveform above 100 KHz?&lt;/P&gt;&lt;P class="lia-align-justify"&gt;Can there a way or an alternative to do the same with S32K116 controller to drive WS2811?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Dec 2023 11:23:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Drive-WS2811-RGB-LED-with-S32K116/m-p/1775835#M29675</guid>
      <dc:creator>Saar</dc:creator>
      <dc:date>2023-12-16T11:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Drive WS2811 RGB LED with S32K116</title>
      <link>https://community.nxp.com/t5/S32K/Drive-WS2811-RGB-LED-with-S32K116/m-p/1776426#M29721</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/227132"&gt;@Saar&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The pulses can be counted in the FTM overflow interrupt, and the PWM output masked when the SW counter reaches a certain value.&lt;/P&gt;
&lt;P&gt;Or a FTM trigger (for example, init_trig) can be rounted via TRGMUX to LPTMR that has Pulse Counter mode and can count the FTM triggers, generate an interrupt or a trigger on match to mask the PWM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding a single pulse, this was discussed here:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K144-FTM-Output-Compare-for-Single-Pulse/m-p/844006" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K144-FTM-Output-Compare-for-Single-Pulse/m-p/844006&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Max. PWM period depends on the FTM clock source.&lt;/P&gt;
&lt;P&gt;For example, SOSCDIV1_CLK = 10MHz,&lt;/P&gt;
&lt;P&gt;Max. EPWM period = (MOD − CNTIN + 0x0001) / 10MHz =&amp;nbsp;65536 / 10 MHz = 6.5536ms&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1702907206270.png" style="width: 661px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/254867i5C875EAF70544CDA/image-dimensions/661x428?v=v2" width="661" height="428" role="button" title="danielmartynek_0-1702907206270.png" alt="danielmartynek_0-1702907206270.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2023 13:56:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Drive-WS2811-RGB-LED-with-S32K116/m-p/1776426#M29721</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2023-12-18T13:56:01Z</dc:date>
    </item>
  </channel>
</rss>

