<?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>Request NCS v2.1.2 PWM example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94950/request-ncs-v2-1-2-pwm-example</link><description>Can you please provide an example project showing how to operated a pwn, with the following features: 
 1) Does NOT use pwm-led, pwn-servo, or whatever drivers or whatever these things are..... Just operate a PWM like one would be manipulating it&amp;#39;s registers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jan 2023 09:18:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94950/request-ncs-v2-1-2-pwm-example" /><item><title>RE: Request NCS v2.1.2 PWM example</title><link>https://devzone.nordicsemi.com/thread/406183?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2023 09:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60ad98c7-4f4e-464f-a94e-2ea78377dd28</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I am not aware of any samples that use that, unfortunately. Why do you need to use this one in particular? The nordic,nrf-pwm (the PWM peripheral) that you refer to is better suited for LED control (ironically) or audio samples. It is well suited if you want to play a sequence that is determined up front. If you want to control something in real time (which it looks like from your requirements list), I suggest you stick to the pwm-leds dts binding. It is more than capable to handle those things.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request NCS v2.1.2 PWM example</title><link>https://devzone.nordicsemi.com/thread/406112?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2023 19:10:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ead24f-7368-412a-83d9-cca643d72e2e</guid><dc:creator>zsvtmml</dc:creator><description>&lt;p&gt;Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your reply. Your example uses the &amp;quot;pwm-leds&amp;quot; dts binding. I want an example that has the same functionality but that uses the &amp;quot;nordic,nrf-pwm&amp;quot; binding. Can you provide that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;M. Leung&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Request NCS v2.1.2 PWM example</title><link>https://devzone.nordicsemi.com/thread/401220?ContentTypeID=1</link><pubDate>Mon, 19 Dec 2022 11:15:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063ae68b-e004-47a3-ab36-da7021cdfb18</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I hope you are not too disappointed with my suggestion, because it contains most of the things you clearly stated that you don&amp;#39;t want (pwm-led, pwm-servo, etc.)&lt;/p&gt;
&lt;p&gt;I did a hands on course with the nRF52840 DK a while back. While it still uses the pwmleds, and it is intended to control a servo, I believe the guide will cover how to modify it enough for you to call it whatever you like, and you will be able to set both the period and duty cycle as you like.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To shut off the PWM, just set the duty cycle to 0. The API will actually turn it off when you do, not just set the duty cycle to 0.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can skip directly to section 3:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/edvinand/OmegaV_BLE_Course#step-3---motor-control"&gt;https://github.com/edvinand/OmegaV_BLE_Course#step-3---motor-control&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>