<?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>What is the equivalent of S110&amp;#39;s enum &amp;quot;NRF_CLOCK_LFCLKSRCS&amp;quot; in S140?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22703/what-is-the-equivalent-of-s110-s-enum-nrf_clock_lfclksrcs-in-s140</link><description>Hello, in S110 device&amp;#39;s nrf_sdm.h, there is this enum &amp;quot;NRF_CLOCK_LFCLKSRCS&amp;quot; which is defined as: 
 enum NRF_CLOCK_LFCLKSRCS
{
 NRF_CLOCK_LFCLKSRC_SYNTH_250_PPM, /**&amp;lt; LFCLK Synthesized from HFCLK. */
 NRF_CLOCK_LFCLKSRC_XTAL_500_PPM, /**&amp;lt; LFCLK crystal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Jun 2017 10:53:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22703/what-is-the-equivalent-of-s110-s-enum-nrf_clock_lfclksrcs-in-s140" /><item><title>RE: What is the equivalent of S110's enum "NRF_CLOCK_LFCLKSRCS" in S140?</title><link>https://devzone.nordicsemi.com/thread/89267?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 10:53:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a7336ac-6d86-4cd6-976f-1d28b837b57a</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;The enum in SDK10 was two-fold. It set the clock source, and if a crystal was used defined the accuracy of it, if the RC was used it set the calibration time.&lt;/p&gt;
&lt;p&gt;In SDK13 it is no longer just an enum, but a struct called nrf_clock_lf_cfg_t where you set the different fields related to LFCLK configuration. If the source is a crystal oscillator you must also set the xtal_accuracy field, which is one of the entries of the XTAL_ACCURACY defines. If the RC oscillator is used the accuracy is always 250ppm (Normal mode) and the calibration time is now set with the rc_ctiv and rc_temp_ctiv fields.&lt;/p&gt;
&lt;p&gt;As your switch-case is concerned with the accuracy of the crystal, it should refer to the above mentioned defines if a crystal is used.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the equivalent of S110's enum "NRF_CLOCK_LFCLKSRCS" in S140?</title><link>https://devzone.nordicsemi.com/thread/89268?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 10:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65dedf6e-c6e5-423e-8bc9-e83015ed6d43</guid><dc:creator>Mitch996</dc:creator><description>&lt;p&gt;Yes Yoern, I have found that, but I&amp;#39;m not exactly sure that they are same in nature, since the name doesn&amp;#39;t suggest so. One appears to emphasize on source, another, accuracy.&lt;/p&gt;
&lt;p&gt;Can they be used interchangeably?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: What is the equivalent of S110's enum "NRF_CLOCK_LFCLKSRCS" in S140?</title><link>https://devzone.nordicsemi.com/thread/89266?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 09:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b10d4b5-bb36-401b-ae82-a5b4391489e3</guid><dc:creator>J&amp;#248;rn</dc:creator><description>&lt;p&gt;Hello Mitch996&lt;/p&gt;
&lt;p&gt;You can find a similar enum for the LF clock source in the nrf_sdm.h (Softdevice manager).&lt;/p&gt;
&lt;p&gt;As for clock source you have a few choices, crystal oscillator with external crystal, internal RC oscillator (normal and ultra-low power mode), synthesized from the HFCLK, and external clock source. See table 17, page 144 of the nRF52840 &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF52840_OPS_v0.5.pdf"&gt;product specification&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Jørn Frøysa&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>