<?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</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77415/pwm</link><description>Hi, 
 i am working on nrf52dk. i want to include &amp;quot;pwm&amp;quot; example in &amp;quot;ble_app_uart&amp;quot; example . i have included all the header files. and functions in &amp;quot;ble_app_uart&amp;quot; example. 
 the error shown is &amp;quot; &amp;#39;NRFX_TIMER2_INST_IDX&amp;#39; undeclared here (not in a function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 26 Jul 2021 08:58:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77415/pwm" /><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/321736?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 08:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c9ca21e-5465-41be-9e53-5a6d8a4cf88a</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Call&amp;nbsp;app_pwm_uninit()&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/320716?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 13:35:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faa6394b-c743-45ac-8230-54cec2c4790b</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;can you tell me how i can disable pwm. i want to do off the led connected on pwm. i could not access that pin as gpio once it is initialized as pwm.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319972?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 10:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:845a181d-9993-4162-b43b-a6a3adc9430f</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;YES, your code is working.&amp;nbsp; &amp;nbsp;i did similar changes but i am facing a issue with compiling&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_PWM_5F00_1.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_PWM_5F00_1.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319940?ContentTypeID=1</link><pubDate>Wed, 14 Jul 2021 07:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d347e5e-4fa6-4b9b-be87-165007df9e00</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve attached an example that merge the pwm library example with the ble_app_uart example.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_app_5F00_uart_5F00_pwm.7z"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_pwm.7z&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319854?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 14:06:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8df1900a-db01-4f01-8a0b-882329cfe1ee</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;yes i want to include app_pwm&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319845?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 13:54:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1db22eb9-cf39-49b2-885a-0fc0ea6b8a20</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to be sure, do you want to include the app_pwm that uses the PWM library, or the PWM driver that uses the PWM peripheral?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319779?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 12:01:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a5553170-e6ea-4284-87ca-60cbb16322b8</guid><dc:creator>harrys</dc:creator><description>&lt;p&gt;&amp;nbsp;i have added&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;#include &amp;quot;app_error.h&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;#include &amp;quot;bsp.h&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;#include &amp;quot;nrf_delay.h&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;#include &amp;quot;app_pwm.h&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;APP_PWM_INSTANCE(PWM1,1); // Create the instance &amp;quot;PWM1&amp;quot; using TIMER1.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;static volatile bool ready_flag; // A flag indicating PWM status.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;void pwm_ready_callback(uint32_t pwm_id) // PWM callback function&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt; ready_flag = true;&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;}&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;/p&gt;
&lt;p&gt;and in sdkconfig.h configured pwm as&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;#ifndef APP_PWM_ENABLED&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;#define APP_PWM_ENABLED 1&lt;/span&gt;&lt;br /&gt;&lt;span style="background-color:#ffff99;"&gt;#endif&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffffff;"&gt;i have not included&amp;nbsp; any paths to pwm source files in project settings.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="background-color:#ffff99;"&gt;can you tell me which path i have to include to run pwm in &amp;quot;ble_app_uart&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM</title><link>https://devzone.nordicsemi.com/thread/319776?ContentTypeID=1</link><pubDate>Tue, 13 Jul 2021 11:49:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e64d9f0-d513-44aa-ac76-4424bc03adf3</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you enabled the PWM instance in the SDK config file and included the paths to the pwm source files in the project settings?&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>