<?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>PWM frequency and pulse width related</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46153/pwm-frequency-and-pulse-width-related</link><description>Dear nordic, 
 I want to make a PWM with frequency 1 HZ - 100 HZ and pulse width of 100 us. i see several demo in PWM . 
 can you help me how to make this ? 
 what parameters are needed to change? i need to use softdevice for BLE also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2019 07:08:28 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46153/pwm-frequency-and-pulse-width-related" /><item><title>RE: PWM frequency and pulse width related</title><link>https://devzone.nordicsemi.com/thread/181988?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 07:08:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed3190a2-4246-4bd0-8eb6-333c4a53bbbd</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What are your requirements with regard to accuracy and power consumption? Since this is very low frequencies, it might make most sense to use the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_low_power_pwm.html?cp=5_0_3_27"&gt;Low-power PWM library&lt;/a&gt;, provided that you do not need very high accuracy. This uses an&amp;nbsp;RTC which runs of the LFCLK. Other alternatives are the &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_pwm.html?cp=5_0_3_34"&gt;PWM librar&lt;/a&gt;y (which is more accurate as it uses a TIMER peripheral using the HFCLK, but has higher current consumption), and on the nRF52840 you also have the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html?cp=3_0_0_5_16"&gt;PWM peripheral&lt;/a&gt;. You can find examples of all these options in the SDK under &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/examples_hw_peripheral_devices.html?cp=5_0_4_6"&gt;Hardware peripheral examples&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>