<?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>NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60261/nrf52-pwm-library-or-driver</link><description>Hello, 
 I am trying to build a remote control using NRF52832 SoC, SDK16.0.0 with softdevice S132 version 7, Keil 5. 
 I have to control a servo motor and i want to achieve this using the PWM HW integrated in the chip. 
 I am also using the softdevice</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 Apr 2020 08:42:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60261/nrf52-pwm-library-or-driver" /><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245452?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:42:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f730786-0413-4fa9-a290-a8f95d79497c</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Can you show me the relevant code?&lt;br /&gt;&lt;br /&gt;FYI, if you&amp;#39;re using the LED&amp;#39;s on the DK remember that they are active low.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245450?ContentTypeID=1</link><pubDate>Mon, 20 Apr 2020 08:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f542920-e3c6-4f99-9a53-2ba63b616dff</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Try this, open cmd, type: nrfjprog -f nrf52 --recover --log&lt;br /&gt;&lt;br /&gt;Send me the log file that is generated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245376?ContentTypeID=1</link><pubDate>Sun, 19 Apr 2020 16:30:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38220ed9-c15c-43fa-a26b-e1383ad6968b</guid><dc:creator>marian_g</dc:creator><description>&lt;p&gt;it&amp;#39;s my third chip which is broken after flashing the softdevice v7.0.1.&lt;/p&gt;
&lt;p&gt;I am flashing using j-link via swd interface. can you check this on your side please?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245305?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 17:14:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d689f9c0-61a7-4f0a-8a77-f2a36ac6bd03</guid><dc:creator>marian_g</dc:creator><description>&lt;p&gt;One more question regarding the PWM driver and PWM driver example:&lt;/p&gt;
&lt;p&gt;Is there a way to change the polarity of the pin?&lt;/p&gt;
&lt;p&gt;I am using&amp;nbsp;BSP_LED_0 | NRF_DRV_PWM_PIN_INVERTED and also just&amp;nbsp;&lt;span&gt;BSP_LED_0&amp;nbsp;with the same effect, the pin is LOW until reaches the COMP value, then goes HIGH until&amp;nbsp; TOP.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The pin is working correctly if i use the PWM_Libary example.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245254?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 13:37:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8a1f360-4fd9-44e2-a66f-663aac08ae95</guid><dc:creator>marian_g</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I started with the PWM driver library and i run into a problem. I flashed the softdevice&amp;nbsp; S132 v7 in the chip, then i tried to flash the PWM driver PCA10040 example.&lt;/p&gt;
&lt;p&gt;The flashing didn&amp;#39;t work and my chip stopped responding.&lt;/p&gt;
&lt;p&gt;I couldn&amp;#39;t reflash, erase, do anything on that chip.&lt;/p&gt;
&lt;p&gt;I am using J-Link to flash, over SWD interface&lt;/p&gt;
&lt;p&gt;Is there a reason why this is braking my chips?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245210?ContentTypeID=1</link><pubDate>Fri, 17 Apr 2020 11:15:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b766ea8a-6c3d-4aab-a9da-5d2010637453</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;I recommend that you use the UARTE peripheral with the &lt;a title="UARTE driver" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrfx__uarte.html?cp=7_1_6_9_0_42_0"&gt;UARTE driver&lt;/a&gt;. I also recommend using HW flow control.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Though if you&amp;#39;re gonna connect to a PC via uart-USB bridge you might as well just use the nRF52840 with integrated USB. We&amp;#39;ve got a&amp;nbsp;&lt;a title="USB CDC ACM Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/usbd_cdc_acm_example.html?cp=7_1_4_6_52_3"&gt;USB CDC ACM Example&lt;/a&gt;&amp;nbsp;(Virtual COM port) that should work with any PC out of the box.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245061?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:55:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c053c01-d1cc-4797-95c8-01d974341e82</guid><dc:creator>marian_g</dc:creator><description>&lt;p&gt;Thank you very much for your fast response.&lt;/p&gt;
&lt;p&gt;I will continue my application using the driver, like you advised me. After you advanced with reading the documentation and also taking a closer look in the example, doesn&amp;#39;t look too hard after all.&lt;/p&gt;
&lt;p&gt;Can you also help me choose an example for UART communication?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would like to have serial communication with the PC using an SIL2104 module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 PWM library or driver?</title><link>https://devzone.nordicsemi.com/thread/245040?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 14:11:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d92d5e68-daf7-46d7-b0d8-19d25440a7c0</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;The PWM library uses a TIMER and GPIOTE to create a PWM signal. It is vulnerable to polarity inversions so I recommend that you stick with the PWM peripheral, see the PWM driver example for details.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The PWM peripheral might be a bit overkill for your application, but it is safe from polarity inversions.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>