<?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>How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1319/how-to-output-32768hz-external-crystal-lfclk-at-a-gpio-pin</link><description>For synchronizing an external sensor i need to output a 32768Hz clock at a GPIO pin. For this case i want to use LFCLK from the external cyrstal. 
 My setup: 
I use RTC0 to generate a tick event with prescaler set to &amp;quot;0&amp;quot;. The tick event is connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 28 Sep 2017 06:24:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1319/how-to-output-32768hz-external-crystal-lfclk-at-a-gpio-pin" /><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6047?ContentTypeID=1</link><pubDate>Thu, 28 Sep 2017 06:24:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a86883a7-fd08-43b9-bc9c-741dc04005c5</guid><dc:creator>Yashur</dc:creator><description>&lt;p&gt;what if i need a software solution to this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6046?ContentTypeID=1</link><pubDate>Thu, 23 Jan 2014 01:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a57f2621-25f4-40eb-aa91-862280642ed0</guid><dc:creator>Jay Tyzzer</dc:creator><description>&lt;p&gt;Yes,&lt;/p&gt;
&lt;p&gt;You may connect an External 32khz Osc to the device.&lt;/p&gt;
&lt;p&gt;Pin #46
XL1
Connection for 32.768 kHz crystal or external 32.768 kHz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6045?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2014 13:08:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f9f31a5-7d3a-43ec-a154-4fd0a45c77c9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Buergervrm,&lt;/p&gt;
&lt;p&gt;As Syntroniks already suggested, you can tap the XL2 and get the crystal signal from there.
If your sensor need a crystal clock signal, you should be fine. If your sensor expect to have full swing clock signal then you may need to buffer the signal.&lt;/p&gt;
&lt;p&gt;The other solution is good also. You can feed the XL1 with external 32768kHz from external oscillator and leave XL2 open. This has been described at section 12.1.1 in the nRF51 Series Reference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6044?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2014 10:54:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4e45fe2-1a86-44d3-930b-971bc6873631</guid><dc:creator>bvrm</dc:creator><description>&lt;p&gt;So no more reply on this means it is not possible?&lt;/p&gt;
&lt;p&gt;Further question:
Could i feed in a 32768Hz square wave clock signal (from an oscillator) and use this as clock source for LFCLK (bypassing the nrf internal oscillator). The square wave clock signal from the external oscillator and drive both the nrf and sensor in sync.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6043?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2014 10:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80af7a27-a027-49f5-ac15-2cc883a985bb</guid><dc:creator>bvrm</dc:creator><description>&lt;p&gt;XL1 and XL2 pins are designed to connect an external crystal which is the case in my hardware (nRF51822 EK atm). I think this pins should not be touched when there is a external crystal connected to not affect the internal oscillator loop.&lt;/p&gt;
&lt;p&gt;Otherwise my sensor needs a square wave clock signal.&lt;/p&gt;
&lt;p&gt;This is the first time i&amp;#39;m using an ARM, but i know from other MCU they could easily output the CPU system clock and/or RTC clock signal at a pin, which is very useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to output 32768Hz external crystal LFCLK at a GPIO pin?</title><link>https://devzone.nordicsemi.com/thread/6042?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2014 19:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:204101fc-ef75-44b0-9187-ad51561de185</guid><dc:creator>syntroniks</dc:creator><description>&lt;p&gt;&lt;strong&gt;XL2&lt;/strong&gt; which is pin 45 of the QFN48 package is designated as an analog output which is one of the connections to a low frequency crystal.&lt;/p&gt;
&lt;p&gt;I do not know how much loading you can place on this pin (I assume very little) but perhaps a buffer could be attached to that pin. Alternatively, build the feedback circuit yourself and feed the nrf chip via its &lt;strong&gt;XL1&lt;/strong&gt; pin as an external reference.&lt;/p&gt;
&lt;p&gt;Of course prototype before committing since with too much loading, the xtal might not start up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>