<?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: pwm WS2811 in S32K</title>
    <link>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1879661#M36144</link>
    <description>&lt;P&gt;That example,&amp;nbsp;configure FTM_SC_CLKS(2)=10b - Fixed frequency clock = SIM_LPOCLKS[RTCCLKSEL]=00b - SOSCDIV1_CLK = &lt;STRONG&gt;8&lt;/STRONG&gt;MHz&lt;/P&gt;
&lt;P&gt;And FTM_SC_PS(7) means the FTM counter clock = 8MHz/128. This frequency is too low to generate 0.5us and 1.2us. It is recommended to modify the frequency division(FTM_SC_PS(1) ) or select a higher FTM Clock such as 48MHz FIRC.&lt;/P&gt;
&lt;P&gt;If you configure FTM_SC_PS(1), then each FTM counter takes 1/8MHz=0.125us&lt;BR /&gt;If you want to get 1.2us, then&amp;nbsp;oneshot0 = 1.2/0.125=9.6≈10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I am not familiar with s32k144_OneShot.zip. If you don't understand how to use it, I suggest you refer to other MCU examples to use DMA or FlexIO.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2014/11/10/neoshield-ws2812-rgb-led-shield-with-dma-and-nrf24l01/" target="_self"&gt;NeoShield: WS2812 RGB LED Shield with DMA and nRF24L01+&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2016/05/22/nxp-flexio-generator-for-the-ws2812b-led-stripe-protocol/" target="_self"&gt;NXP FlexIO Generator for the WS2812B LED Stripe Protocol&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Jun 2024 08:44:55 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2024-06-03T08:44:55Z</dc:date>
    <item>
      <title>pwm WS2811</title>
      <link>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1875887#M35854</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a problem that i haven't solved yet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mswd_0-1716867053876.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281056i72E30CE7F60EBAD4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mswd_0-1716867053876.png" alt="mswd_0-1716867053876.png" /&gt;&lt;/span&gt;ㅇ&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mswd_1-1716867064419.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281057i6A4D747DFC20FB6A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mswd_1-1716867064419.png" alt="mswd_1-1716867064419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;failed to generate the above waveform.&lt;/P&gt;&lt;P&gt;through searching i found out a few things.&lt;/P&gt;&lt;P&gt;one of them is that control is possible through overinterrupt.&lt;/P&gt;&lt;P&gt;but i don't know how to use it.&lt;/P&gt;&lt;P&gt;ex) how do you set the overinterrupt to 0.5ns?&lt;/P&gt;&lt;P&gt;i need an example for k146.&lt;/P&gt;&lt;P&gt;please help me. thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the source code i referenced.&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;</description>
      <pubDate>Tue, 28 May 2024 03:38:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1875887#M35854</guid>
      <dc:creator>mswd</dc:creator>
      <dc:date>2024-05-28T03:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: pwm WS2811</title>
      <link>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1877988#M36010</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;I did not go through the s32k144_OneShot.zip and their reply completely. Please correct me if I understand it wrong.&lt;BR /&gt;I saw that the FTM is configured in &lt;STRONG&gt;Output Compare mode&lt;/STRONG&gt;, and it is recommended to modify &lt;STRONG&gt;CnV&lt;/STRONG&gt; and &lt;STRONG&gt;MOD&lt;/STRONG&gt; to meet your needs (0.5us or 1.2us &lt;STRONG&gt;high pulse&lt;/STRONG&gt;&amp;nbsp; ,&amp;nbsp;&amp;nbsp;2.5us &lt;STRONG&gt;period&lt;/STRONG&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;Also I don't understand why you want to set overinterrupt to 0.5&lt;STRONG&gt;ns&lt;/STRONG&gt;? Shouldn't you set overinterrupt to &lt;STRONG&gt;0.5us&lt;/STRONG&gt; and &lt;STRONG&gt;1.2us&lt;/STRONG&gt;?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="s32k144_OneShot Output Compare mode.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/281703i47E8DF288017B041/image-size/large?v=v2&amp;amp;px=999" role="button" title="s32k144_OneShot Output Compare mode.png" alt="s32k144_OneShot Output Compare mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Sorry, this example is based on S32K144. It is recommended that you create a new S32K146 project and then add the relevant codes.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2024 07:45:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1877988#M36010</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-05-30T07:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: pwm WS2811</title>
      <link>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1878864#M36086</link>
      <description>&lt;P&gt;how do i set MOD and CnV to set it to 1.2us?&lt;/P&gt;&lt;P&gt;sorry, but i don't understand pwm settings.&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 09:35:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1878864#M36086</guid>
      <dc:creator>mswd</dc:creator>
      <dc:date>2024-05-31T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: pwm WS2811</title>
      <link>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1879661#M36144</link>
      <description>&lt;P&gt;That example,&amp;nbsp;configure FTM_SC_CLKS(2)=10b - Fixed frequency clock = SIM_LPOCLKS[RTCCLKSEL]=00b - SOSCDIV1_CLK = &lt;STRONG&gt;8&lt;/STRONG&gt;MHz&lt;/P&gt;
&lt;P&gt;And FTM_SC_PS(7) means the FTM counter clock = 8MHz/128. This frequency is too low to generate 0.5us and 1.2us. It is recommended to modify the frequency division(FTM_SC_PS(1) ) or select a higher FTM Clock such as 48MHz FIRC.&lt;/P&gt;
&lt;P&gt;If you configure FTM_SC_PS(1), then each FTM counter takes 1/8MHz=0.125us&lt;BR /&gt;If you want to get 1.2us, then&amp;nbsp;oneshot0 = 1.2/0.125=9.6≈10;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry I am not familiar with s32k144_OneShot.zip. If you don't understand how to use it, I suggest you refer to other MCU examples to use DMA or FlexIO.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2014/11/10/neoshield-ws2812-rgb-led-shield-with-dma-and-nrf24l01/" target="_self"&gt;NeoShield: WS2812 RGB LED Shield with DMA and nRF24L01+&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://mcuoneclipse.com/2016/05/22/nxp-flexio-generator-for-the-ws2812b-led-stripe-protocol/" target="_self"&gt;NXP FlexIO Generator for the WS2812B LED Stripe Protocol&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-WS2811/m-p/1879661#M36144</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2024-06-03T08:44:55Z</dc:date>
    </item>
  </channel>
</rss>

