<?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>nRF5340 Low frequency Clock configuration when external clock is used</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/116739/nrf5340-low-frequency-clock-configuration-when-external-clock-is-used</link><description>Hi, 
 I have the following scenario: 
 
 nrf5340 
 SDK 2.1.1 
 HFCLK: 32Mhz crystal 
 LFCLK: square wave of 32768 Hz from an external RTC, range [0 - 1.8] Volts 
 square wave applied to XL1 pin 
 XL2 pin left unconnected 
 
 According to the Product Specification</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jan 2025 10:03:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/116739/nrf5340-low-frequency-clock-configuration-when-external-clock-is-used" /><item><title>RE: nRF5340 Low frequency Clock configuration when external clock is used</title><link>https://devzone.nordicsemi.com/thread/519239?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 10:03:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6cb20bc-d49f-41b9-ae48-ccf4718e5086</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Thanks a lot !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Low frequency Clock configuration when external clock is used</title><link>https://devzone.nordicsemi.com/thread/519235?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 09:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08adc0bd-674c-450c-9652-72d4ae554e1e</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;The LFXO and HFXO can be configured via the dts as mentioned here in the release notes:&amp;nbsp;&lt;a href="https://docs.zephyrproject.org/latest/releases/migration-guide-4.0.html#clock-control"&gt;Migration guide to Zephyr v4.0.0 — Zephyr Project Documentation&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Low frequency Clock configuration when external clock is used</title><link>https://devzone.nordicsemi.com/thread/519210?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2025 08:43:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66fee860-85e1-4a69-a390-e6e85c7ffdf7</guid><dc:creator>Riccardo Gaiati</dc:creator><description>&lt;p&gt;Hi Priyanka,&lt;/p&gt;
&lt;p&gt;sorry for the late reply. Thanks for the information.&lt;/p&gt;
&lt;p&gt;Do you have any news regarding the question 3 ?&lt;/p&gt;
&lt;p&gt;Thanks in advance !&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF5340 Low frequency Clock configuration when external clock is used</title><link>https://devzone.nordicsemi.com/thread/512994?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2024 13:58:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ec3772e-007f-4b78-a8a5-a21f3d7f671b</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;Hi Riccardo,&lt;/p&gt;
[quote user=""]By activating the BYPASS, what is really bypassed (see picture below)?&amp;nbsp;[/quote]
&lt;p&gt;When enabling the BYPASS, generally the internal LFXO&amp;nbsp;circuit is bypassed, and Instead, the&amp;nbsp;SoC directly uses the external clock signal applied to the XL1 pin as the source for the LFCLK.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]I suppose i dont need to use any capacitor in this configuration. Is it correct to set the&amp;nbsp;XOSC32KI.INTCAP as by default ?[/quote]
&lt;p&gt;No, you wouldn&amp;#39;t need any caps since the LFXO circuit is completely bypassed. Yes, you can set the XOSC32KI.INTCAP as default.&lt;/p&gt;
[quote user=""]So far, I have run the above scenario WITHOUT enabling the BYPASS. The device seems to work anyhow. Is that expected ?[/quote]
&lt;p&gt;Well, it&amp;#39;s recommended to enable BYPASS when using an external clock source. If the external signal is within the expected frequency and voltage range, the internal oscillator circuit might sometimes appear to work, but it&amp;nbsp;is not a guaranteed/stable state.&lt;/p&gt;
[quote user=""]&amp;nbsp;In case the external source is removed or fails, what is the behaviour of the clock peripheral ? any fall-back behaviour ?[/quote]
&lt;p&gt;I don&amp;#39;t think there&amp;#39;s any default failsafe / fallback mechanism and the LFCLK will just stop work in case of a failure. But you can always create your own fallback method using a watchdog or interrupt etc.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;I am checking internally for the other queries and will get back to you soon.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>