<?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 moves the specified number of steps in nRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45996/pwm-moves-the-specified-number-of-steps-in-nrf52832</link><description>Hi, 
 I am try to create a PWM output which can move the specified number of steps. 
 Please find following source code 
 
 After I execute above problem, I can get following wave form output. 
 First image is correct, and the second image is incorrect</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Apr 2019 12:42:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45996/pwm-moves-the-specified-number-of-steps-in-nrf52832" /><item><title>RE: PWM moves the specified number of steps in nRF52832</title><link>https://devzone.nordicsemi.com/thread/182110?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 12:42:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a09a757-7fd2-4067-8faa-8bca8bd6120a</guid><dc:creator>chianglin</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you. I will try to study &amp;quot;pwm_driver&amp;quot; sample code and merge it to my environment, then test it&amp;#39;s behavior&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Chianglin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM moves the specified number of steps in nRF52832</title><link>https://devzone.nordicsemi.com/thread/182005?ContentTypeID=1</link><pubDate>Mon, 15 Apr 2019 08:03:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5beeabe5-ac29-45f7-8876-c069940c9b6e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the Easter holiday you will have to expect a delay in replies, sorry for the inconvenience!&lt;/p&gt;
&lt;p&gt;I think you should take a look at the pwm_driver example in our SDK, as it describes how it is working with the PWM_driver in detail, and in multiple scenarios. It will probably help you get some insight in how the peripheral works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also you could have a look at &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/33110/beginner-needing-help-with-basic-structure-and-pwm/127421#127421"&gt;this case&lt;/a&gt;, where an example using ble_app_uart and the PWM_driver together for easy modification of the PWM duty cycle. They also have a good discussion on how to implement PWM.&lt;/p&gt;
&lt;p&gt;As for StepCntInitial I am not quite sure what you mean. What parameter do you want to set it as,. How do you want it to work?&lt;/p&gt;
&lt;p&gt;Best regards and happy Easter,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM moves the specified number of steps in nRF52832</title><link>https://devzone.nordicsemi.com/thread/181886?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 14:30:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59ffbbf0-656c-4d87-a472-f9c5ed208120</guid><dc:creator>chianglin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Simon,&lt;/p&gt;
&lt;p&gt;Yes, the output wave-form some times is correct, some times is wrong, but I don&amp;#39;t know its rule.&lt;/p&gt;
&lt;p&gt;By the way, how can I set&amp;nbsp;StepCntInitial parameter?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Chianglin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM moves the specified number of steps in nRF52832</title><link>https://devzone.nordicsemi.com/thread/181332?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 12:51:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a27e128-12e2-4ca5-bd10-fe1118e3ce28</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Can you clarify one thing for me. Are you getting the correct amount of steps sometimes, and sometimes not. Or are you always getting the wrong output?&lt;/p&gt;
&lt;p&gt;Also, have you tride setting your&amp;nbsp;StepCntInitial&amp;nbsp;to for example 1, to see how many steps 1 of these step counts provide?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>