<?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>Sharing LF CLOCK with an SPI sensor</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86446/sharing-lf-clock-with-an-spi-sensor</link><description>I have an SPI sensor that benefits from having a precise clock source, and has a muxed pin that can have a clock source. 
 The peripheral states that this pin can handle frequencies between 31 kHz to 50kHz, but the examples are all 32.768 RTC clocks.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 31 Mar 2022 16:51:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86446/sharing-lf-clock-with-an-spi-sensor" /><item><title>RE: Sharing LF CLOCK with an SPI sensor</title><link>https://devzone.nordicsemi.com/thread/361094?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 16:51:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf37175-f1ec-4e4a-ae4e-5599af705ef8</guid><dc:creator>Mehmet</dc:creator><description>&lt;p&gt;Thank you, Kenneth. I will take a look at the links now.&lt;/p&gt;
&lt;p&gt;You are referring to a MEMS oscillator, right? (My sensor happens to be a MEMS accelerometer, that is why.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sharing LF CLOCK with an SPI sensor</title><link>https://devzone.nordicsemi.com/thread/361064?ContentTypeID=1</link><pubDate>Thu, 31 Mar 2022 13:56:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c35fbde-b9fd-461c-81a7-6829ed5e22c5</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You may find these two tables useful:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html#concept_xkj_np1_2r"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html#concept_xkj_np1_2r&lt;/a&gt;&amp;nbsp;and&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html#unique_567737179"&gt;https://infocenter.nordicsemi.com/topic/ps_nrf52840/clock.html#unique_567737179&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Note that the BLE softdevice may not have the api to configure BYPASS and EXTERNAL register, so you need to follow this description if you want to use external clock source:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60702/enable-bypass-of-lfclk-crystal-oscillator-with-external-clock-source/247385#247385"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/60702/enable-bypass-of-lfclk-crystal-oscillator-with-external-clock-source/247385#247385&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But to answer your questions:&lt;/p&gt;
&lt;p&gt;Unfortunately I think sharing a crystal driven by the nRF52840 will difficult since the amplitude will be around ~200mV, in addition the capacitance etc must be taken account for to ensure frequency accuracy. It&amp;#39;s not possible to output a 32kHz from the nRF52840 in any low power way (it must be generated by the HFCLK in such case), so I think that is not an option either.&lt;/p&gt;
&lt;p&gt;My suggestion if you want to share, then look into using a MEMS to supply 32kHz clock intput to XL1, just make sure to set BYPASS and EXTERNAL as in the devzone case linked above.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>