<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Is it possible to creat a pwm with 1sec period</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23336/is-it-possible-to-creat-a-pwm-with-1sec-period</link><description>Dear All : 
 Is it possible to creat a pwm with 1sec period?
Since the lowest frequency of the base clock is 125kHz，the top count of the pwm with 1sec period will be 125000(for case of up counter)。But the top count is a uint16_t integer that the maximum</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 10 Jul 2017 10:55:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23336/is-it-possible-to-creat-a-pwm-with-1sec-period" /><item><title>RE: Is it possible to creat a pwm with 1sec period</title><link>https://devzone.nordicsemi.com/thread/91744?ContentTypeID=1</link><pubDate>Mon, 10 Jul 2017 10:55:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd1ef308-6397-4398-aa19-e55883a03594</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Kaochin,&lt;/p&gt;
&lt;p&gt;The BASE_CLOCK is just a wrap over of the pwm clock prescaler. So 125kHz is prescaler div 128.&lt;/p&gt;
&lt;p&gt;You can&amp;#39;t get lower frequency.&lt;/p&gt;
&lt;p&gt;In your case I would suggest to use RTC instead of PWM. You can use RTC and PPI to connect to a GPIO pin. This way you can handle the 1 second period easily and still have low power consumption.&lt;/p&gt;
&lt;p&gt;But be careful if you change the duty cycle dynamically, to avoid glitch on corner cases.&lt;/p&gt;
&lt;p&gt;You can refer to the PWM driver we have for the nRF51 (where we don&amp;#39;t have hardware PWM) as the reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>