<?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>Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82774/minimum-pulse-width-resolution-for-nrf52840-pwm-module</link><description>Hello All, 
 
 What is the minimum pulse width resolution for the nRF52840&amp;#39;s PWM module? 
 
 Thanks, johnwest</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 01 Aug 2025 21:04:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82774/minimum-pulse-width-resolution-for-nrf52840-pwm-module" /><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/544365?ContentTypeID=1</link><pubDate>Fri, 01 Aug 2025 21:04:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d9bb18c-d88d-4c6c-af17-e253e0b3dd24</guid><dc:creator>Kirk Wayland</dc:creator><description>&lt;p&gt;According to the nRF52840 Errata list, at 400Khz operation, the clock is at 1.25 usec.&amp;nbsp; But this is too short and violates the spec of 1.3 usec.&amp;nbsp; Only workaround is to slow the frequency to 390Khz, but this means the standard macros in the SDK cannot be used.&lt;br /&gt;&lt;br /&gt;Don&amp;#39;t forget about sensing the SDA line to see if it is stuck low.&amp;nbsp; If it is, you have to clock the I2C until it is no longer stuck (1 to 9 clocks).&lt;br /&gt;So, GPIO to sense line, then enable and cfg TWIM, and the use the bus.&amp;nbsp; This must be done for every transfer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343772?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 22:32:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21ba203-7928-4795-a72f-29ee9ed64fff</guid><dc:creator>johnwest</dc:creator><description>&lt;p&gt;@hmolesworth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sure - assuming a 50% PDC (positive duty cycle) if the GPIO hardware allows this and indeed the minimum period is defined as 1 / (base clock) - still would be nice to see this called out in detail in the specs.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343771?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 22:18:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4d4831e-9e58-4ff1-97ff-3b177ca8e6ba</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Welcome, but 125nSec period or 62.5nSec pulsewidth :-)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343767?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 21:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43de3330-0864-466b-9f4c-ce45e94c1725</guid><dc:creator>johnwest</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/hmolesworth"&gt;hmolesworth&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;OK - so 125 nS then,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;John&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343766?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 21:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16d893d3-14b2-4b76-9eeb-998dd821c96e</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;No idea, but with a x1 divider each step is 1/16MHz; the 16MHz is fixed in stone (well, silicon), no way of changing that. To get 8MHz PWM at least 4 steps are required 0-1-0-1 as period (COUNTERTOP) cannot be less than 3. A COUNTERTOP value of 4 with the sequence 0-1-0-1 gives 8MHz PWM signal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343764?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 21:03:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:545480ea-87c1-4738-aff3-1e221505f5c0</guid><dc:creator>johnwest</dc:creator><description>&lt;p&gt;So, min pulse width is 1 / (base clock) - is that in the spec someplace?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343760?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 20:29:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39fafa74-e9c3-4338-aa94-9c70e9a04973</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;16MHz clock gives 62.5 nSec minimum pulse width.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343748?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 18:59:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ca78acb-a8ed-43a6-a156-074752b624d1</guid><dc:creator>johnwest</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/haakonsh"&gt;haakonsh&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;So, is the minimum pulse width 1uS?&amp;nbsp; 1nS?&amp;nbsp; 1pS?&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;br /&gt;johnwest&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Minimum Pulse-Width Resolution for nRF52840 PWM Module</title><link>https://devzone.nordicsemi.com/thread/343579?ContentTypeID=1</link><pubDate>Wed, 15 Dec 2021 09:57:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79bd8a6b-4a84-4540-ac77-17b538c2209a</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I&amp;#39;m not quite sure what exactly you are asking for, so I&amp;#39;ll just list the relevant timing specs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;16MHz base clock&lt;/li&gt;
&lt;li&gt;1x - 128x PRESCALER (16MHz - 125kHz)&lt;/li&gt;
&lt;li&gt;15-bit COUNTERTOP value (3 - 32767)&lt;/li&gt;
&lt;li&gt;15-bit compare values (1 - 32767)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Full specs:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/pwm.html?cp=4_0_0_5_16"&gt;PWM — Pulse width modulation&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>