<?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: QN9080---  PWM in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032346#M8910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CTIMER and SCTIMER examples included in the SDK may help give you an idea on how to use a CTIMER/SCTIMER to generate a PWM of a certain frequency and duty cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These can be found in the following paths:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\driver_examples\sctimer"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\driver_examples\ctimer"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CTIMER_SetupPwm function initially configures the duty cycle and frequency, and the CTIMER_UpdatePwmDutycycle function can then be used to update to a different duty cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jan 2020 16:46:51 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-01-03T16:46:51Z</dc:date>
    <item>
      <title>QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032345#M8909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I need to use a PWM to control the light, it need to able to adjust the frequency and duty arbitrarily.&lt;BR /&gt;I can't find an example in the SDK.&lt;BR /&gt;Can you provide an example for my reference, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 06:35:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032345#M8909</guid>
      <dc:creator>danieltseng</dc:creator>
      <dc:date>2020-01-03T06:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032346#M8910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CTIMER and SCTIMER examples included in the SDK may help give you an idea on how to use a CTIMER/SCTIMER to generate a PWM of a certain frequency and duty cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These can be found in the following paths:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\driver_examples\sctimer"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\driver_examples\ctimer"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CTIMER_SetupPwm function initially configures the duty cycle and frequency, and the CTIMER_UpdatePwmDutycycle function can then be used to update to a different duty cycle.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2020 16:46:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032346#M8910</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-03T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032347#M8911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Dear Sebastian:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading SCTimer example, I have the following questions&lt;BR /&gt; 1. Can I reverse the waveform?&lt;BR /&gt; 2. Example default frequency of 24k , What is the maximum and minimum frequency range?&lt;BR /&gt; 3. Example only adjust duty cycle, but do not see adjustment frequency function？&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 10:30:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032347#M8911</guid>
      <dc:creator>danieltseng</dc:creator>
      <dc:date>2020-01-06T10:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032348#M8912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The SCTIMER functions provide a better interface to control the level of the generated PWM, allowing it to be either High or Low true.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The frequency of the PWM is configured with the SCTIMER_SetupPwm function, but to update the PWM frequency, a custom function may need to be implemented.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The maximum frequency is approximately half the configured Bus Clock frequency.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information, could you please take a look at the SCTIMER with PWM Duty Cycle change example? I can be found in the following path:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\driver_examples\sctimer\pwm_with_dutycyle_change&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2020 18:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032348#M8912</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-06T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032349#M8913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN title=""&gt;1. I also look at this example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="" title=""&gt;&amp;nbsp; &amp;nbsp; What is the maximum frequency that can be reached in this example?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" title=""&gt;How to calculate frequency&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;2.&amp;nbsp;Inverted waveform as shown below?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/101656i1DEBA3D7ABBF40C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;3. A&amp;nbsp;custom function may need to be implemented on frequency.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="en"&gt;&lt;SPAN class="" title=""&gt;&amp;nbsp; &amp;nbsp; How would it be easier to achieve this?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 02:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032349#M8913</guid>
      <dc:creator>danieltseng</dc:creator>
      <dc:date>2020-01-07T02:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032350#M8914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To change the ActiveLow/High configuration for a PWM signal, the level element of the sctimer_pwm_signal_param_t structure is the one responsible for establishing which value is considered "TRUE" for the generated PWM signal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The maximum frequency achievable using the PWM SCTIMER functions is around 800kHz, any more than that, and the signal&amp;nbsp;could get really deformed or not be generated as intended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be able to change the frequency when the SCTIMER is already running, the timer first has to be stopped using the SCTIMER_StopTimer function, then the new frequency can be established by using the SCTIMER_SetupPwm again, and then starting the timer again, with the SCTIMER_StartTimer function, for example:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="token function"&gt;SCTIMER_StopTimer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SCT0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kSCTIMER_Counter_L&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;SCTIMER_SetupPwm&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SCT0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;pwmParam&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kSCTIMER_CenterAlignedPwm&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;30000U&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; sctimerClock&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;&amp;amp;&lt;/SPAN&gt;eventNumberOutput4&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token function"&gt;SCTIMER_StartTimer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;SCT0&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; kSCTIMER_Counter_L&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2020 17:01:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032350#M8914</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-07T17:01:16Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032351#M8915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN title=""&gt;Dear Sebastian:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;Thank you for your&amp;nbsp;best and quick reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;I already know how to use PWM&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN title=""&gt;Daniel&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 03:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032351#M8915</guid>
      <dc:creator>danieltseng</dc:creator>
      <dc:date>2020-01-08T03:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: QN9080---  PWM</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032352#M8916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if you have any further questions!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 18:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/QN9080-PWM/m-p/1032352#M8916</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-01-08T18:50:40Z</dc:date>
    </item>
  </channel>
</rss>

