<?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>Using external low swing clock source with softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61284/using-external-low-swing-clock-source-with-softdevice</link><description>Hello, 
 We&amp;#39;re bringing up custom hardware using SiT1532 MEMS 32kHz oscillator. This part outputs a low swing single ended clock source (300mV +/-55mV p-p). I&amp;#39;m struggling to find the appropriate way to configure this when using softdevice. 
 sdk_config</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 12 May 2020 14:33:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61284/using-external-low-swing-clock-source-with-softdevice" /><item><title>RE: Using external low swing clock source with softdevice</title><link>https://devzone.nordicsemi.com/thread/249524?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 14:33:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b72efd38-94eb-4451-8652-ce063a2a977b</guid><dc:creator>Steve</dc:creator><description>&lt;p&gt;This worked, thank you.&amp;nbsp; We did however, have some issues because it wasn&amp;#39;t clear in sdk_config that we needed to set the following when setting source as Xtal&lt;/p&gt;
&lt;pre class="c-mrkdwn__pre"&gt;NRF_SDH_CLOCK_LF_RC_TEMP_CTIV 0&lt;/pre&gt;
&lt;pre class="c-mrkdwn__pre"&gt;NRF_SDH_CLOCK_LF_RC_CTIV 0&lt;br /&gt;&lt;br /&gt;Otherwise softdevice returns an error.&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using external low swing clock source with softdevice</title><link>https://devzone.nordicsemi.com/thread/249415?ContentTypeID=1</link><pubDate>Tue, 12 May 2020 11:26:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25babbd8-c768-46a6-adae-7044b869c615</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]sdk_config.h lists external low swing external source options for the clock driver, but NRF_SDH_CLOCK_LF_SRC has no such option.&amp;nbsp; When trying to use the 131073 value listed for NRFX_CLOCK_CONFIG_LF_SRC, the compiler throws an error, apparently softdevice can only accept an 8 bit value, even though the LFCLKSRC register documents setting bit 17 for external sources instead of Xtals.&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Yes, this is an unfortunate&amp;nbsp;option that is lacking when initializing the softdevice. The workaround is to set NRF_SDH_CLOCK_LF_SRC to xtal, and manually start the xtal prior to initializing the softdevice.&lt;/p&gt;
[quote user=""]What&amp;#39;s the right way to use an external source with softdevice?&amp;nbsp; We&amp;#39;re on version 16 of the SDK with S140, nRF52840.[/quote]
&lt;p&gt;You can follow the configuration as posted by my colleague here:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60702/enable-bypass-of-lfclk-crystal-oscillator-with-external-clock-source"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/60702/enable-bypass-of-lfclk-crystal-oscillator-with-external-clock-source&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;You should configure the low swing according to this table:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_1#concept_xkj_np1_2r"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html?cp=4_0_0_4_3_1#concept_xkj_np1_2r&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please let me know if you run into any issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>