<?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>nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37175/nrf52810-pwm-issue</link><description>Hi All: 
 When I simulated PWM by GPIO, the output current noise was shown like the picture below (red circle area): 
 
 
 Cause it will lead to a loading issue in the backend, so I&amp;#39;m wondering the root cause and if there is any possible solution for</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Aug 2018 03:25:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37175/nrf52810-pwm-issue" /><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143830?ContentTypeID=1</link><pubDate>Mon, 13 Aug 2018 03:25:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9a346eb-48df-4159-9699-18089963383b</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi &lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/electronut"&gt;Mahesh&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/hungbui"&gt;Bui&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/a&gt;:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;our customer is trying to use PPI methods to solve their problem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143297?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 05:49:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f84f4ce-f977-4d6f-ba2d-fac6b398e427</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you&amp;#39;ll have a problem with softdevice. You can see the softdevice documentation to see which peripherals are in use. As long as you use others (and there are plenty left) you should not have a problem.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;quot;The Programmable peripheral interconnect (PPI) enables peripherals to interact autonomously with each other using tasks and events independent of the CPU.&amp;quot;&lt;br /&gt;&lt;br /&gt;So this is designed exactly for what you&amp;#39;re doing.&amp;nbsp; An external signal can control PWM with minimal CPU involvement.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143296?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 05:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4616fff-1f41-410d-a920-6eb57a21a7c3</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="internal-link view-user-profile" href="https://devzone.nordicsemi.com/members/electronut"&gt;Mahesh&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;Got it , thanks for your suggestion.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Do you have any idea about whether the&amp;nbsp;external signal be interfered by softdevice or not?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143295?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 05:28:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e75d920-57c8-4eee-bad1-8799c03c2988</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;I think your GPIOTE idea is correct, but you should just use the external pin trigger to toggle PWM on/off in the handler. The PWM itself should be configured separately. You also have a 1ms delay in your gpiote handler, which might be a bad idea.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143294?ContentTypeID=1</link><pubDate>Wed, 08 Aug 2018 05:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da24fad5-b4e2-49de-a0e3-4f4fc05807be</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi Bui:&lt;br /&gt;&lt;br /&gt;we are trying to make PWM pulse , and it&amp;#39;s controlled by an external signal &amp;quot;ZeroX&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;To be more precisely, when we detect there is a rising/falling edge of ZeroX , we trigger nrf52 to generate PWM pulse.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a known issue that Softdevice will interfere the process of&amp;nbsp; PWM generating.&lt;/p&gt;
&lt;p&gt;So, when generating PWM pulse , we should&amp;nbsp; use PWM driver to avoid interference , right?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the controlling signal -- &amp;quot;ZeroX&amp;quot; which is also an external signal .&lt;/p&gt;
&lt;p&gt;We&amp;#39;re wondering if it will also be interfered by&amp;nbsp; softdevice.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it will be interfered , then how should we do to avoid this situation ?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143246?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 14:17:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662efdf6-50c0-40a7-b385-566f592c7d54</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure what you are trying to do. Could you please explain ? What is generating the duty cycle ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143171?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 09:25:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc2892dd-55b1-47e0-964d-141e6c7d1e31</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi Bui:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Does the&amp;nbsp;&lt;span&gt;gpiote_event_handler() code illustrate the concept you need?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143164?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 09:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae66b6ba-5541-40b8-bf12-c47da6a69ed6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi, could you explain a little bit more ? You mean you flip the GPIO pin based on the input from&amp;nbsp;IO_ZERO_X ? Like cloning the signal ? And there is no timer ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143161?ContentTypeID=1</link><pubDate>Tue, 07 Aug 2018 08:59:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732ac5ca-741e-45de-8f46-aef684253cbe</guid><dc:creator>WrightLin</dc:creator><description>&lt;p&gt;Hi Mahesh &amp;amp; Hung:&lt;/p&gt;
&lt;p&gt;I have updated the code of generating PWM , please kindly check it. Thank you!!!&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/143024?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 12:30:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33f7c4eb-041c-44df-9061-b4a520604b0b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@WrightLin: Please provide the code you used. You mentioned &amp;quot;When I simulated PWM by GPIO &amp;quot;&amp;nbsp; did you use software to generate PWM ? Can you just use the hardware PWM we have ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf52810 PWM issue</title><link>https://devzone.nordicsemi.com/thread/142952?ContentTypeID=1</link><pubDate>Mon, 06 Aug 2018 08:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e7bc8a1-5709-42b0-9479-6210a7416eed</guid><dc:creator>Mahesh Venkitachalam</dc:creator><description>&lt;p&gt;Are you using the PWM library? Maybe share some of your code that&amp;#39;s generating the PWM?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>