<?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>12 bit duty cycle resolution at 25 KHz PWM frequency</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18322/12-bit-duty-cycle-resolution-at-25-khz-pwm-frequency</link><description>Hi, 
 Does anyone know if there is a way to achieve 12 bit duty cycle resolution at 25 KHz PWM frequency for 5 channels (individual duty cycle for each channel) using the NRF52823 ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Dec 2016 10:59:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18322/12-bit-duty-cycle-resolution-at-25-khz-pwm-frequency" /><item><title>RE: 12 bit duty cycle resolution at 25 KHz PWM frequency</title><link>https://devzone.nordicsemi.com/thread/70747?ContentTypeID=1</link><pubDate>Mon, 12 Dec 2016 10:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8cd2f48-582f-43d1-a23f-f681fa392928</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;25 KHz PWM frequency with 12 bit duty cycle would require a base PWM clock of:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;25 KHz * 2^12 ~= 100MHz
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The maximum base clock for the PWM (and most of the peripherals) on the nRF52 is 16 MHz, see &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pwm.html?cp=2_2_0_46_4_7#register.PRESCALER"&gt;here&lt;/a&gt;. The maximum duty cycle resolution with 25 KHz PWM and 16 MHz base clock is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;16MHz / 25 KHz = 640 (a bit above 9 bits)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Ole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>