<?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>Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41531/initializing-pwm-with-specific-duty-cycle</link><description>Hi, 
 I am using PWM to control LED power. 
 The code i use for initializing the PWM is- 
 app_pwm_config_t pwm1_cfg = APP_PWM_DEFAULT_CONFIG_2CH(1000L, PIN1, PIN2); err_code = app_pwm_init(&amp;amp;PWM1,&amp;amp;pwm1_cfg,vHAL_pwm_ready_callback); APP_ERROR_CHECK(err_code</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Jan 2019 13:48:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41531/initializing-pwm-with-specific-duty-cycle" /><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/164283?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 13:48:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3df263d-e0f0-42a4-a3d8-27bc5655bfee</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Changing pin_polarity worked for me. Can you show me exactly what you changed in your code that didn&amp;#39;t work?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/163280?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 13:54:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:453ecfe2-dd14-4e64-a4a7-5b866f4132e2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Well you need to explain that - not just sit there saying, &amp;quot;Help Me&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/163278?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 13:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb6654b3-46ae-451b-9e99-b3a04d7dd529</guid><dc:creator>Shaked</dc:creator><description>&lt;p&gt;I did try it (actually before raising the question here) and I&amp;nbsp;changed all required fields accordingly (max and etc). Unfortunately, it didn&amp;#39;t help and even got something else to be un-functioning. Maybe it will work but i still need more guidelines and clarifications.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/163277?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 12:03:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7457a85-b609-4e14-b528-d5132a902548</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Did you try &lt;a href="https://devzone.nordicsemi.com/members/ashish28"&gt;Ashish&lt;/a&gt;&amp;#39;s suggestion? What was the outcome?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/163271?ContentTypeID=1</link><pubDate>Sun, 30 Dec 2018 08:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b828d416-e57a-4593-92e7-260aaf5f8e79</guid><dc:creator>Shaked</dc:creator><description>&lt;p&gt;HI,&lt;/p&gt;
&lt;p&gt;I am still waiting for help.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Who can assist?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Shaked.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/162597?ContentTypeID=1</link><pubDate>Thu, 20 Dec 2018 07:10:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95051e49-7712-4dc4-afd8-d736041259cd</guid><dc:creator>Ashish</dc:creator><description>&lt;p&gt;Maybe, try changing the default pin polarity.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;pwm1_cfg.pin_polarity[0] = APP_PWM_POLARITY_ACTIVE_LOW;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;or&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;pwm1_cfg.pin_polarity[0] = APP_PWM_POLARITY_ACTIVE_HIGH;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/162502?ContentTypeID=1</link><pubDate>Wed, 19 Dec 2018 12:52:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5bcc0acd-6c87-45f4-ac48-186eabf81eb5</guid><dc:creator>Shaked</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am still waiting for a replay.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;@Awneil-thank you, but this isn&amp;#39;t what i need.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I would love some assistant.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Shaked.&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Initializing PWM with specific duty cycle</title><link>https://devzone.nordicsemi.com/thread/161496?ContentTypeID=1</link><pubDate>Wed, 12 Dec 2018 15:26:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47d51fba-b0b7-4367-9c83-ebaa1af9732a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/38607/nrf5-sdk15-0---pwm-driver-just-set-a-fixed-duty-cycle"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/38607/nrf5-sdk15-0---pwm-driver-just-set-a-fixed-duty-cycle&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>