<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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 setup on the NRF52DK</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88324/pwm-setup-on-the-nrf52dk</link><description>Hello all, 
 Four leds are connected to the GPIO (22-25) and gpio are defined and with a simple method within the while loop I can see them working 
 
 Next is to use the PWM and I am looking at the pwm_driver example that comes with the 17.1.0 SDK examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Fri, 27 May 2022 04:41:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88324/pwm-setup-on-the-nrf52dk" /><item><title>RE: PWM setup on the NRF52DK</title><link>https://test-devzone.nordicsemi.com/thread/369698?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 04:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b9f5f2-24e0-468e-b7c6-4fae9408bc81</guid><dc:creator>user98052</dc:creator><description>&lt;p&gt;Hi MuRa,&lt;/p&gt;
[quote userid="113599" url="~/f/nordic-q-a/88324/pwm-setup-on-the-nrf52dk/369666#369666"]If I understood you right, do I have to write that manually into the sdk_config.h?[/quote]
&lt;p&gt;Yes, you are right here. We have to add manually into the SDk_config.h file.&lt;/p&gt;
&lt;p&gt;If you check on the nrfx_pwm.c source file you can see like,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#if NRFX_CHECK(NRFX_PWM_ENABLED)&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;All the functions inside the driver file can be used if this macro is enabled in the config.h file like following&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#ifndef NRFX_PWM_ENABLED
#define NRFX_PWM_ENABLED 1
#endif&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Similarly,&amp;nbsp; I&amp;nbsp; guess there are a few other macros also&amp;nbsp;need to be inside this same config file for the proper working&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM setup on the NRF52DK</title><link>https://test-devzone.nordicsemi.com/thread/369666?ContentTypeID=1</link><pubDate>Thu, 26 May 2022 11:43:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:135dc6ea-e79f-45d3-bfb1-7da2422d5fc7</guid><dc:creator>user113599</dc:creator><description>&lt;p&gt;Hello Jeavan R Raj&lt;/p&gt;
&lt;p&gt;Thank you,&amp;nbsp;I have managed to add the &amp;quot;nrfx_pwm.c&amp;quot; into the nRF_Drivers&amp;quot; folder, so far so good.&lt;/p&gt;
[quote userid="98052" url="~/f/nordic-q-a/88324/pwm-setup-on-the-nrf52dk/369661#369661"]For adding the PWM support to our project, we have to add those required configurations into&amp;nbsp;our project&amp;#39;s&amp;nbsp; sdk_config.h file as well as to add corresponding files to the project.[/quote]
&lt;p&gt;If I understood you right, do I have to write that manually into the sdk_config.h?&lt;/p&gt;
&lt;p&gt;For example, although the nrfx_pwm.c is now evident in the drivers&amp;#39; folder, I cannot enable the PWN driver via the CMSIS configuration via the right-click on the Application folder ... I guess I should be able to enable the driver over there or I will have to manually write the setup into the SDK configuration or I do not need to worry about enabling the PWM driver this way, but just to write it into the SDK Config file?&lt;/p&gt;
&lt;p&gt;Best.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM setup on the NRF52DK</title><link>https://test-devzone.nordicsemi.com/thread/369661?ContentTypeID=1</link><pubDate>Thu, 26 May 2022 11:08:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82336c0e-dd85-4a2b-a368-d218ecc09c63</guid><dc:creator>user98052</dc:creator><description>&lt;p&gt;Hi MuRa,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have worked on the nrf52 chip, Where the PWM signals can be routed to all&amp;nbsp;the GPIO pins I believe.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For adding the PWM support to our project, we have to add those required configurations into&amp;nbsp;our project&amp;#39;s&amp;nbsp; sdk_config.h file as well as to add corresponding files to the project.&lt;/p&gt;
&lt;p&gt;[&lt;/p&gt;
&lt;p&gt;From the project explorer, right-click and select the add existing files, navigate and select the pwm&amp;nbsp;driver, so that we can use the PWM SDK functions into our project.&lt;/p&gt;
&lt;p&gt;nRF5_SDK_17.0.2_d674dde/modules/nrfx/drivers/src/nrfx_pwm.c&lt;/p&gt;
&lt;p&gt;]&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>