<?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>nrf52 WDT LFCLK sourcing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/51559/nrf52-wdt-lfclk-sourcing</link><description>Hi, 
 I would like to check my understanding of exactiy how the sourcing and configuration of the LFCLK works when using a WDT and doing soft resets. 
 I found these statements in the datasheet LFCLK and WDT sections: 
 &amp;quot;It is not allowed to write to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Aug 2019 13:51:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/51559/nrf52-wdt-lfclk-sourcing" /><item><title>RE: nrf52 WDT LFCLK sourcing</title><link>https://devzone.nordicsemi.com/thread/207184?ContentTypeID=1</link><pubDate>Fri, 30 Aug 2019 13:51:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac50e6eb-750e-40c8-bb0f-24c0a725ed0f</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;[quote user=""][/quote]&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Does &amp;quot;&lt;em&gt;the watchdog will automatically force the 32.768 kHz RC oscillator on&lt;/em&gt; &lt;em&gt;as long as no other &lt;/em&gt;&lt;em&gt;32.768 kHz clock source is running&amp;quot;&amp;nbsp; &lt;/em&gt;mean &amp;#39;the internal RC will be used to clock the WDT only, until you configure LFCLKSRC to be something else and trigger TASKS_LFCLKSTART, at which point LFCLK will be used to drive the WDT&amp;#39;?&lt;/li&gt;
&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The LFCLK can have two sources, the internal RC oscillator (LFRC)or an external crystal oscillator (LFXO). If you have nRF52 design without the external crystal, then the LFRC will be used to clock all peripherals that are active and requesting the LFCLK.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If its a design with an external crystal and that is configured as the LFCLK source, but no other peripheral is using the LFCLK, then the WDT will use the LFRC and not the LFXO. If a peripheral requests the LFCLK, then the LFXO will start and that will be the LF clock source for both the WDT and the peripheral.&amp;nbsp;&lt;/p&gt;
[quote user=""]Does the LFCLK source persist across a soft reset when the WDT forces it to stay active, or does it revert to using the internal RC?[/quote]
&lt;p&gt;&lt;span&gt;As the CLOCK is a peripheral and a SoftReset will reset the Peripheral registers, then I beleive that the LFCLK will revert to the RC configuration post a SoftReset.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>