<?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 Wrong frequency and duty cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17808/pwm-wrong-frequency-and-duty-cycle</link><description>I set up my PWM Driver like this: 
 nrf_drv_pwm_config_t const nrf_drv_pwm_config =
{
 .output_pins =
 {
 BSP_LED_2 | NRF_DRV_PWM_PIN_INVERTED, // channel 0
 NRF_DRV_PWM_PIN_NOT_USED, // channel 1
 BSP_LED_3 | NRF_DRV_PWM_PIN_INVERTED, // channel</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Nov 2016 16:22:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17808/pwm-wrong-frequency-and-duty-cycle" /><item><title>RE: PWM Wrong frequency and duty cycle</title><link>https://devzone.nordicsemi.com/thread/68644?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 16:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:529439f3-819a-4fc9-8fa0-0342edcc3787</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;If users find the answer to their own question, we encourage them to post the answer to the question. If other users in the future have the same problem, they can therefore find the answer by searching for it in the forum.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Wrong frequency and duty cycle</title><link>https://devzone.nordicsemi.com/thread/68643?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 16:15:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddf1c522-8d83-4b29-b3cc-ca43e5936c6d</guid><dc:creator>Felipe Ribas</dc:creator><description>&lt;p&gt;I had just deleted the question as I realized that. I tried to find max value for Countertop in the datasheet but haven&amp;#39;t seen anywhere until I looked at the COUNTER register description (I had look at the COUNTER register variable before, which is uint16_t). Thanks anyway&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM Wrong frequency and duty cycle</title><link>https://devzone.nordicsemi.com/thread/68642?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2016 16:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc61c16b-cf38-4285-bd2b-fd0ba6629b1e</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pwm.html?cp=2_2_0_46_4_6#register.COUNTERTOP"&gt;COUNTERTOP register&lt;/a&gt; is 15bit, and the max value is 32767. You can therfore not set PWM_MAX_STEPS to 62500.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>