<?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>Question about 32Mhz  High Frequency Clock configuration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48003/question-about-32mhz-high-frequency-clock-configuration</link><description>Hello, community. I have a question about hardware and software setting for using 32Mhz. 
 
 (1) Software setting in sdk_config.h 
 #ifndef CLOCK_ENABLED #define CLOCK_ENABLED 1 #endif #if CLOCK_ENABLED // &amp;lt;o&amp;gt; CLOCK_CONFIG_XTAL_FREQ - HF XTAL Frequency</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 03 Jun 2019 13:07:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48003/question-about-32mhz-high-frequency-clock-configuration" /><item><title>RE: Question about 32Mhz  High Frequency Clock configuration</title><link>https://devzone.nordicsemi.com/thread/190528?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 13:07:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dac4d33-c49b-4b57-94e3-12f6abad0dce</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is an anomaly regarding using 32MHz that you should read:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51822_pan_v3.3.pdf?cp=4_4_1_0"&gt;https://infocenter.nordicsemi.com/pdf/nRF51822_pan_v3.3.pdf?cp=4_4_1_0&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The registers you are referring to I believe are related to the nRF52-series. In your case you have two ways of enable 32MHz:&lt;/p&gt;
&lt;p&gt;Either write to the XTALFREQ register in UICR (page 26 in reference manual), this way can be done during production programming.&lt;/p&gt;
&lt;p&gt;Or write to the XTALFREQ in the CLOCK peripheral (page 55 in reference manual)&lt;span&gt;, this way can be done during code execution in firmware.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf?cp=4_2_0"&gt;https://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.1.pdf?cp=4_2_0&lt;/a&gt;&amp;nbsp;&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></channel></rss>