<?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 frequency changes on Run Time?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69122/pwm-frequency-changes-on-run-time</link><description>PWM frequency and PWM steps resolution are related, we increase one and the other decrease and vice versa, we want high PWM frequency so we have low flickering and we want high steps resolution for smooth dimming, specially on the low end due to non linear</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Dec 2020 12:38:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69122/pwm-frequency-changes-on-run-time" /><item><title>RE: PWM frequency changes on Run Time?</title><link>https://devzone.nordicsemi.com/thread/283534?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 12:38:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f95c52df-13b3-4a12-b906-a1c6ec250e0c</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;That is exactly what our&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/pwm.html?cp=4_2_0_46#concept_pzc_1pw_nr"&gt;PWM — Pulse width modulation&lt;/a&gt;&amp;nbsp;peripheral is designed to do. It has an arbitrary waveform generator, in simpler terms, you can change the TOP value of the PWM counter (frequency) as well as the COMPARE value (duty-cycle) in each PWM sequence sample. This lets you control both frequency and resolution.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PWM frequency changes on Run Time?</title><link>https://devzone.nordicsemi.com/thread/283395?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 21:00:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9955125-33b0-4890-9cd3-2c42c788ee79</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Did you configure PWM at highest possible frequency? From my experience, 4096 levels is enough for smooth backlight dimming, maybe in your case you need more, but 16k should be fine anyway. At 16MHz PWM clock this gives 1kHz that is quite comfortable for eyes.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="73023" url="~/f/nordic-q-a/69122/pwm-frequency-changes-on-run-time"]I don’t know if they can be adjusted on run time?[/quote]
&lt;p&gt;Yes, you can configure dynamic frequency using&amp;nbsp;WaveForm mode. In this mode, fourth halfword from each step will be loaded into COUNTERTOP.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>