<?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>Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/28081/is-there-a-simple-example-how-to-set-a-pwm-driver</link><description>Using SDK13 with nrf52832 , I was looking for hours how to set up a simple PWM signal. 
 
 
 I don&amp;#39;t want to use the example, it&amp;#39;s a huge mess, it&amp;#39;s not clear and you can&amp;#39;t find a way to create your own class later, because you don&amp;#39;t know what is needed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 22 Oct 2020 13:46:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/28081/is-there-a-simple-example-how-to-set-a-pwm-driver" /><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/276463?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 13:46:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee474ffa-fc81-4813-8690-c2544902b04a</guid><dc:creator>JVKran</dc:creator><description>&lt;p&gt;That&amp;#39;s unfortunate too hear... I&amp;#39;ve just started using the SDK&amp;#39;s and am very impressed at what&amp;#39;s possible but not so much at how easy it is to start using the SDK. This example should have definetely been added by now as it provides a quick and easy glance at what&amp;#39;s happening. Way better than these incredibly extended example.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110660?ContentTypeID=1</link><pubDate>Tue, 12 Dec 2017 18:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce8bac3-2a42-42c5-b33d-a8bc2d87e8d7</guid><dc:creator>Wayne</dc:creator><description>&lt;p&gt;@bndit I had the same issue and found you need to add these to the Makefile (or alter them in sdk_config.h)&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;CFLAGS += -DPWM_ENABLED=1
CFLAGS += -DPWM0_ENABLED=1
CFLAGS += -DPWM1_ENABLED=1
CFLAGS += -DPWM2_ENABLED=1
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110658?ContentTypeID=1</link><pubDate>Wed, 27 Sep 2017 06:58:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff925c1-1c6a-4927-9e94-23014cc3217b</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Richard&lt;/p&gt;
&lt;p&gt;I can forward your request, but having something in the next SDK release is a bit ambitious ;)&lt;/p&gt;
&lt;p&gt;For every release there is a long list of features that have to be prioritized, and examples like this where there is already a version available on Github or Devzone will usually be put at the back of the line.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110659?ContentTypeID=1</link><pubDate>Tue, 26 Sep 2017 23:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7d55027-5e3f-471a-aa9e-2e73f92428e9</guid><dc:creator>Richard D.</dc:creator><description>&lt;p&gt;Thanks so much for the pwm_simple sample; it&amp;#39;s a common use case that was difficult to figure out from the complex SDK example.  Perhaps pwm_simple could be added to the next SDK release.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110657?ContentTypeID=1</link><pubDate>Mon, 22 May 2017 13:55:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcf93c27-be11-4995-94a3-7962366d69f5</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi
Which project file did you try?
Because of the relative file names in the project you need to put the &lt;em&gt;pwm_simple&lt;/em&gt; folder at the right place in the SDK, for instance like this:&lt;br /&gt;
\nRF5_SDK_13.0.0\examples\peripheral\pwm_simple\&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110656?ContentTypeID=1</link><pubDate>Sat, 20 May 2017 18:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33afb258-1f5a-4ab2-80bc-f1b6c23984a2</guid><dc:creator>Bndit</dc:creator><description>&lt;p&gt;The simple pwm is not working. Error on compile says : undefined reference to nrf_drv_pwm_init .
I have added the nrf_driver_pwm.c file, and enabled the #define in the config file, nothing works. Your project also will not compile, saying : bsp.c no such file or directory . I am not sure why I am the only one in the world who has all these problems, but certainly this awful IDE is missing something important&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110655?ContentTypeID=1</link><pubDate>Sat, 20 May 2017 17:21:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c206f8b-e355-42bf-8e1d-b7523f97c6eb</guid><dc:creator>Bndit</dc:creator><description>&lt;p&gt;Thanks a lot ! So what&amp;#39;s the different between yours and the one here ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a simple example how to set a PWM driver?</title><link>https://devzone.nordicsemi.com/thread/110654?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 12:08:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846594c8-cfda-468d-a188-1dd1d58a13bb</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I updated the old case to include support for SDK v13.&lt;/p&gt;
&lt;p&gt;Also, a colleague of mine made an even simpler example, which I think is much better if you just want a function that allows you to set the duty cycle directly:
&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pwm_5F00_simple.zip"&gt;pwm_simple.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I recommend you have a look at that if you need a way to easily set the PWM duty cycle.&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;
Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>