<?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>nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67478/nrf52840-examples-with-lfrc-and-calibration</link><description>I am designing a custom board with a nRF52840 module that has no 32.768 kHz crystal embedded in it and as a first step want to test it with some examples that use only RC LFCLK. 
 The Blinky example doesn’t have any clock configured in the sdk_config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 Nov 2020 12:43:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67478/nrf52840-examples-with-lfrc-and-calibration" /><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/278060?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 12:43:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2b622d5-e9c9-4b8f-91f3-d8d94d17aa95</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;No problem. Good luch with the board bring up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/277946?ContentTypeID=1</link><pubDate>Mon, 02 Nov 2020 01:59:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d82b0db3-31f8-435f-a21e-c48cdf64e9ce</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Thanks, will try it soon - still haven&amp;#39;t received all the electronic components, but hope this week to start assemble the PCB (step by step with test) and the first step will be only BT module, switch and LED. Then if Ok wil go further incl. 32768 crystal ...&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/277780?ContentTypeID=1</link><pubDate>Fri, 30 Oct 2020 10:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99ec126a-3737-4671-9386-af79f0348b07</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Maybe you have implemented it already, but I&amp;#39;ve modified the RTC example as I suggested now, see attached below.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0878.SDK17.0.2_5F00_peripheral_5F00_rtc_5F00_w_5F00_rcosc.zip"&gt;devzone.nordicsemi.com/.../0878.SDK17.0.2_5F00_peripheral_5F00_rtc_5F00_w_5F00_rcosc.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/277195?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 15:35:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b67a9feb-ebee-4bba-97c6-1168d3f23a61</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;None of the SDK peripheral examples includes clock calibration as far as I can tell, but the clock driver documentation does explain how you can enable it (&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v17.0.2%2Fhardware_driver_clock.html"&gt;link&lt;/a&gt;). I would recommend you to start with the &lt;span&gt;&lt;a title="Real Time Counter Example" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/rtc_example.html?cp=7_1_4_6_34"&gt;Real Time Counter Example&lt;/a&gt;&lt;/span&gt; as it already includes the clock driver. I can also try to set up a simple example if needed, just let me know. &amp;nbsp; &lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/277114?ContentTypeID=1</link><pubDate>Tue, 27 Oct 2020 11:23:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c89856-805c-451e-a180-ef6320663323</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;Ok, thanks, but could you point me to some example in SDK that shows&amp;nbsp;&lt;/p&gt;
&lt;h3 class="title topictitle3" id="ariaid-title6"&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf52840%2Fclock.html&amp;amp;cp=4_0_0_4_3_1_1&amp;amp;anchor=calibrating_32768khz_rcosc"&gt;Calibrating the 32.768 kHz RC oscillator&lt;/a&gt;&lt;/h3&gt;
&lt;p&gt;Not necessary to be for PCA10056 - I anyway have only PCA10040 so far ...&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/276807?ContentTypeID=1</link><pubDate>Mon, 26 Oct 2020 10:05:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72ec478-bd63-4d2d-98d9-672a21b1b1f4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Sorry, I just assumed you were using the Bluetooth blinky example. The blinky example you&amp;#39;re referring to does not use the 32K clock source, only the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html#concept_rp5_fgp_bs"&gt;HFINT.&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/276742?ContentTypeID=1</link><pubDate>Sun, 25 Oct 2020 02:11:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c58754aa-a0ab-45bb-b7e5-10c0efc73848</guid><dc:creator>samsam</dc:creator><description>&lt;p&gt;I was referring &amp;nbsp;to this example, which doesn&amp;rsquo;t have any clock initialization in the the sdk_config.h (even the section for such configuration or any NRF_SDH_CLOCK* is missing):&lt;/p&gt;
&lt;p&gt;&amp;hellip;\SDK17\examples\peripheral\blinky\pca10056\blank\ses\blinky_pca10056.emProject&lt;/p&gt;
&lt;p&gt;So the initial question is still on the table&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f609.svg" title="Wink"&gt;&amp;#x1f609;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52840 examples with  LFRC and calibration?</title><link>https://devzone.nordicsemi.com/thread/276416?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2020 11:18:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1fe6fe3e-c4d5-4da4-bff8-8e4f0b0082ae</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;All project configurations for the 52840 DK (pca10056) use the LFXTAL by default, but you can easily change this in the project&amp;#39;s sdk_config header.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Softdevice LFRC configuration&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;//==========================================================
// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_SRC  - SoftDevice clock source.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_SRC_RC 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_SRC_XTAL 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_SRC_SYNTH 

#ifndef NRF_SDH_CLOCK_LF_SRC
#define NRF_SDH_CLOCK_LF_SRC 0
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_CTIV - SoftDevice calibration timer interval. 
#ifndef NRF_SDH_CLOCK_LF_RC_CTIV
#define NRF_SDH_CLOCK_LF_RC_CTIV 16
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_RC_TEMP_CTIV - SoftDevice calibration timer interval under constant temperature. 
// &amp;lt;i&amp;gt; How often (in number of calibration intervals) the RC oscillator shall be calibrated
// &amp;lt;i&amp;gt;  if the temperature has not changed.

#ifndef NRF_SDH_CLOCK_LF_RC_TEMP_CTIV
#define NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 2
#endif

// &amp;lt;o&amp;gt; NRF_SDH_CLOCK_LF_ACCURACY  - External clock accuracy used in the LL to compute timing.
 
// &amp;lt;0=&amp;gt; NRF_CLOCK_LF_ACCURACY_250_PPM 
// &amp;lt;1=&amp;gt; NRF_CLOCK_LF_ACCURACY_500_PPM 
// &amp;lt;2=&amp;gt; NRF_CLOCK_LF_ACCURACY_150_PPM 
// &amp;lt;3=&amp;gt; NRF_CLOCK_LF_ACCURACY_100_PPM 
// &amp;lt;4=&amp;gt; NRF_CLOCK_LF_ACCURACY_75_PPM 
// &amp;lt;5=&amp;gt; NRF_CLOCK_LF_ACCURACY_50_PPM 
// &amp;lt;6=&amp;gt; NRF_CLOCK_LF_ACCURACY_30_PPM 
// &amp;lt;7=&amp;gt; NRF_CLOCK_LF_ACCURACY_20_PPM 
// &amp;lt;8=&amp;gt; NRF_CLOCK_LF_ACCURACY_10_PPM 
// &amp;lt;9=&amp;gt; NRF_CLOCK_LF_ACCURACY_5_PPM 
// &amp;lt;10=&amp;gt; NRF_CLOCK_LF_ACCURACY_2_PPM 
// &amp;lt;11=&amp;gt; NRF_CLOCK_LF_ACCURACY_1_PPM 

#ifndef NRF_SDH_CLOCK_LF_ACCURACY
#define NRF_SDH_CLOCK_LF_ACCURACY 1
#endif&lt;/pre&gt;&lt;/strong&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>