<?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 library question about the init</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86313/pwm-library-question-about-the-init</link><description>Hello all, 
 I am using the PWM library, does any of you know what does the &amp;quot; 5000L &amp;quot; stands for in this function ? 
 
 Indeed, it says 200 Hz, however, I do not see it :) Can anyone help me in layman terms? 
 
 Best.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 28 Mar 2022 11:49:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86313/pwm-library-question-about-the-init" /><item><title>RE: PWM library question about the init</title><link>https://devzone.nordicsemi.com/thread/360273?ContentTypeID=1</link><pubDate>Mon, 28 Mar 2022 11:49:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5315cd9-d32a-4e93-a6fc-6b759445fa87</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Mu234,&lt;br /&gt;&lt;br /&gt;I can explain the&amp;nbsp;APP_PWM_DEFAULT_CONFIG_2CH macro in layman terms, sure thing!&lt;br /&gt;In essence, the default 2 channel macro needs to know which 2 channels to use, and what frequency. &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__app__pwm.html#ga0ab3501072119588eb8bea06efe10350"&gt;The first parameter is the frequency given in µs&lt;/a&gt;, and is given as 5000L, which translates to 5000 µs, or 5 ms - which is equal to 200 Hz.&lt;br /&gt;The L at the end of the 5000 is just a C suffix indicating &amp;#39;long&amp;#39;.&lt;br /&gt;&lt;br /&gt;Please let me know if any of this still should be unclear, or if you have any additional questions! :)&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>