<?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>Equivalent low-frequency clock source in nRF5 SDK 11.0.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12998/equivalent-low-frequency-clock-source-in-nrf5-sdk-11-0-0</link><description>Hi, 
 I&amp;#39;ve started using the nRF5 11.0.0 (89a8197) SDK on a board that does not include an external low-frequency CLK source. 
 When using the nRF52 0.9.2 SDK, we were recommended to use NRF_CLOCK_LFCLKSRC_RC_250_PPM_TEMP_4000MS_CALIBRATION as our LF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Apr 2016 13:30:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12998/equivalent-low-frequency-clock-source-in-nrf5-sdk-11-0-0" /><item><title>RE: Equivalent low-frequency clock source in nRF5 SDK 11.0.0?</title><link>https://devzone.nordicsemi.com/thread/49529?ContentTypeID=1</link><pubDate>Mon, 25 Apr 2016 13:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:91970c96-b01e-48f5-8e32-0335b407a1b6</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Try to use&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define NRF_CLOCK_LFCLKSRC      {.source       = NRF_CLOCK_LF_SRC_SYNTH,            \
							    .rc_ctiv       = 0,                                \
							    .rc_temp_ctiv  = 0,                                \
							    .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Equivalent low-frequency clock source in nRF5 SDK 11.0.0?</title><link>https://devzone.nordicsemi.com/thread/49528?ContentTypeID=1</link><pubDate>Fri, 22 Apr 2016 10:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fb21583-f242-438b-a078-a30dbde02ed8</guid><dc:creator>Brook Gebremedhin</dc:creator><description>&lt;p&gt;@stefanbirnir&lt;/p&gt;
&lt;p&gt;i tried to change the clock to synth but it doesnt build.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_Synth,            \
                                 .rc_ctiv       = 0,                                \
                                 .rc_temp_ctiv  = 0,                                \
                                 .xtal_accuracy = NRF_CLOCK_LF_XTAL_ACCURACY_20_PPM}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;it works only for the two clocks  NRF_CLOCK_LF_SRC_RC  and NRF_CLOCK_LF_SRC_Xtal&lt;/p&gt;
&lt;p&gt;is synth not supported ?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK_LF_SRC_Synth&amp;#39; undeclared (first use in this function)
 #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_Synth,            \
                                                   ^
/home/brook/Desktop/nordicSDK11/examples/smartplane/SmartPlane/main.c:322:39: note: in expansion of macro &amp;#39;NRF_CLOCK_LFCLKSRC&amp;#39;
     nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
                                       ^
/home/brook/Desktop/nordicSDK11/examples/bsp/pca10028.h:146:51: note: each undeclared identifier is reported only once for each function it appears in
 #define NRF_CLOCK_LFCLKSRC      {.source        = NRF_CLOCK_LF_SRC_Synth,            \
                                                   ^
/home/brook/Desktop/nordicSDK11/examples/smartplane/SmartPlane/main.c:322:39: note: in expansion of macro &amp;#39;NRF_CLOCK_LFCLKSRC&amp;#39;
     nrf_clock_lf_cfg_t clock_lf_cfg = NRF_CLOCK_LFCLKSRC;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Equivalent low-frequency clock source in nRF5 SDK 11.0.0?</title><link>https://devzone.nordicsemi.com/thread/49527?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2016 11:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:043922a0-4060-40ba-8a5c-24859a6c329b</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Max&lt;/p&gt;
&lt;p&gt;The settings that you have proposed are the recommended settings when using internal RC low frequency 32kHz clock with the nRF52832. The recommendation and explanation on those parameters are described in the softdevice manager (nrf_sdm.h) in nRF5 SDK 11.0.0. I copy it here for convenience:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Type representing lfclk oscillator source. */
typedef struct
{
	uint8_t source;        /**&amp;lt; LF oscillator clock source, see @ref NRF_CLOCK_LF_SRC. */
	uint8_t rc_ctiv;      /**&amp;lt; Only for NRF_CLOCK_LF_SRC_RC: Calibration timer interval in 1/4 second
															units (nRF51: 1-64, nRF52: 1-32).
															@note To avoid excessive clock drift, 0.5 degrees Celsius is the
																		maximum temperature change allowed in one calibration timer
																		interval. The interval should be selected to ensure this.

															@note Must be 0 if source is not NRF_CLOCK_LF_SRC_RC.  */
	uint8_t rc_temp_ctiv; /**&amp;lt;  Only for NRF_CLOCK_LF_SRC_RC: How often (in number of calibration
															intervals) the RC oscillator shall be calibrated if the temperature
															hasn&amp;#39;t changed.
																	0: Always calibrate even if the temperature hasn&amp;#39;t changed.
																	1: Only calibrate if the temperature has changed (nRF51 only).
																	2-33: Check the temperature and only calibrate if it has changed,
																				however calibration will take place every rc_temp_ctiv
																				intervals in any case.

															@note Must be 0 if source is not NRF_CLOCK_LF_SRC_RC.

															@note For nRF52, the application must ensure calibration at least once
																		every 8 seconds to ensure +/-250ppm clock stability. The
																		recommended configuration for NRF_CLOCK_LF_SRC_RC on nRF52 is
																		rc_ctiv=16 and rc_temp_ctiv=2. This will ensure calibration at
																		least once every 8 seconds and for temperature changes of 0.5
																		degrees Celsius every 4 seconds. See the Product Specification
																		for the nRF52 device being used for more information.*/
	uint8_t xtal_accuracy; /**&amp;lt; External crystal clock accuracy used in the LL to compute timing windows.

															@note For the NRF_CLOCK_LF_SRC_RC clock source this parameter is ignored. */
} nrf_clock_lf_cfg_t;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>