<?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>freedom pdm clock set</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22696/freedom-pdm-clock-set</link><description>i have used 52832 for pdm clock generater, but i just can set the frequecy to fixed such as 1.032 MHz,1.067 MHz.., if i want to set the frequecy to 1.050MHz, i can&amp;#39;t come true, the frequecy aslo is 1.032 MHz or 1.067 MHz, i have looked the PDMCLKCTRL</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 12 Jun 2017 13:31:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22696/freedom-pdm-clock-set" /><item><title>RE: freedom pdm clock set</title><link>https://devzone.nordicsemi.com/thread/89230?ContentTypeID=1</link><pubDate>Mon, 12 Jun 2017 13:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ed06f16-12cb-478e-b4b2-f180337caeb6</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Only the values listed in the PS have been fully and thoroughly tested. If you are using values that are not listed in the PS, we cannot guarantee that they will work and it will be on your own risk.&lt;/p&gt;
&lt;p&gt;With that said, you should be able to set the clock to a different frequency, e.g. PDM_CLK = 32 MHz / 26 = 1.231 MHz -&amp;gt; use &lt;code&gt;NRF_PDM-&amp;gt;PDMCLKCTRL = 0x09800000;&lt;/code&gt; before you start the PDM.&lt;/p&gt;
&lt;p&gt;But, you will &lt;strong&gt;not be able to fine adjust the clock frequency&lt;/strong&gt;, since the PDM clock generator does integer division based on the HFCLK. You can therefore not set the PDM clock 100% freely. Some additional values are listed for the nRF52840, see this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52840.ps%2Fpdm.html&amp;amp;cp=2_1_0_41_6_4&amp;amp;anchor=register.PDMCLKCTRL"&gt;link&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>