<?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 calculation period and duty in LPC546 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/PWM-calculation-period-and-duty-in-LPC546/m-p/1476707#M49250</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Do you use CTimer module or SCTimer/PWM module to generate the PWM signal? If you use CTimer to generate the PWM signal, as you know that the PWM Reset match register will be&lt;/P&gt;
&lt;P&gt;180MHz/20KHz=9K&lt;/P&gt;
&lt;P&gt;so it is okay to set the match register as 9000 which reset the counter.&lt;/P&gt;
&lt;P&gt;If you use SCTimer/PWM module, you can set the limit register as 9000, which sets up the PWM frequency.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR'&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jun 2022 10:05:46 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-06-20T10:05:46Z</dc:date>
    <item>
      <title>PWM calculation period and duty in LPC546</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PWM-calculation-period-and-duty-in-LPC546/m-p/1476477#M49239</link>
      <description>&lt;P&gt;Is there any calculation for generating the PWM of 20KHz.&lt;/P&gt;&lt;P&gt;my core clock is 180MHz.&lt;/P&gt;&lt;P&gt;i am using LPC54606J512BD100 micro controller.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If anyone know this please reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/68292"&gt;@mgnxp&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/70127"&gt;@Mike_M3&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 04:58:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PWM-calculation-period-and-duty-in-LPC546/m-p/1476477#M49239</guid>
      <dc:creator>k_sunilgupta</dc:creator>
      <dc:date>2022-06-20T04:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: PWM calculation period and duty in LPC546</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PWM-calculation-period-and-duty-in-LPC546/m-p/1476707#M49250</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Do you use CTimer module or SCTimer/PWM module to generate the PWM signal? If you use CTimer to generate the PWM signal, as you know that the PWM Reset match register will be&lt;/P&gt;
&lt;P&gt;180MHz/20KHz=9K&lt;/P&gt;
&lt;P&gt;so it is okay to set the match register as 9000 which reset the counter.&lt;/P&gt;
&lt;P&gt;If you use SCTimer/PWM module, you can set the limit register as 9000, which sets up the PWM frequency.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR'&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jun 2022 10:05:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PWM-calculation-period-and-duty-in-LPC546/m-p/1476707#M49250</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-06-20T10:05:46Z</dc:date>
    </item>
  </channel>
</rss>

