<?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>nRF52840 how to change PWM duty cycle</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66970/nrf52840-how-to-change-pwm-duty-cycle</link><description>Hi. I have a nRF52840 setup using the PWM driver, and it is outputting a 50Khz pulse 50% duty cycle. 
 How do I modify the sequence values so that I can modulate this 50Khz signal at 500Hz, i.e. on for 2mS pulsing 50Khz and then off for 2mS. 
 My sequence</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Oct 2020 08:54:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66970/nrf52840-how-to-change-pwm-duty-cycle" /><item><title>RE: nRF52840 how to change PWM duty cycle</title><link>https://devzone.nordicsemi.com/thread/274524?ContentTypeID=1</link><pubDate>Tue, 13 Oct 2020 08:54:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fef93dc-4ebe-4f6f-9fdc-b7d5256614f3</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;That sounds like a plan yes, you have 2ms to prepare next sequence that way.&lt;/p&gt;
&lt;p&gt;I believe that the peripheral\gpiote example may be a good start, since it setup a timer CC0 event to trigger a task at given interval, in your case you need to change such that it trigger the PWM instead of toggle gpio.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 how to change PWM duty cycle</title><link>https://devzone.nordicsemi.com/thread/274219?ContentTypeID=1</link><pubDate>Mon, 12 Oct 2020 08:17:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e03d23e-af23-46dd-8d2d-bec4622f82df</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Ok, I see know&amp;nbsp;I can maybe use PPI to&amp;nbsp;advance an active sequence. If I have a 500Hz clock triggerering the&amp;nbsp;&lt;em&gt;NRF_PWM_TASK_NEXTSTEP.&amp;nbsp;&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>