<?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>32.768 KHz Clock out on nrf52 GPIO</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89728/32-768-khz-clock-out-on-nrf52-gpio</link><description>Hi Nordic support, 
 I&amp;#39;m sort of new to Nordic development.. 
 1. Is it possible to output 32.768 KHz clock on a GPIO of nrf52 device ? In our design we use two crystal oscillators which are connected to nrf52840 : i) 32 MHz and ii) 32.768KHz 
 2. What</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Jul 2022 17:48:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89728/32-768-khz-clock-out-on-nrf52-gpio" /><item><title>RE: 32.768 KHz Clock out on nrf52 GPIO</title><link>https://devzone.nordicsemi.com/thread/376075?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 17:48:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367714c0-205d-40a6-9b82-0c2b972a7397</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1. Is it possible to output 32.768 KHz clock on a GPIO of nrf52 device ? In our design we use two crystal oscillators which are connected to nrf52840 : i) 32 MHz and ii) 32.768KHz&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hello , &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;it is not possible to get output clock of 32.768 KHZ on a GPIO pin on nRF52 device (&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/36554/nrf52840-outputing-lfclock-on-a-pin/140662#140662"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/36554/nrf52840-outputing-lfclock-on-a-pin/140662#140662&lt;/a&gt;).&amp;nbsp; 32 MHZ is the crystal for high frequency and 32.768 KHZ is the low frequency crystal which is optional but it is recommended to be in the part of design for less power consumption. Even though it&amp;#39;s not possible to get the output of crystal on GPIO pin, you can use a TIMER and PPI to GPIOTE and can get only half of the LFCLK (16.38 KHz) in GPIO.&amp;nbsp; One toggle of 1 TICK on GPIO is converted to two RTC TICK (which converts to one cycle on GPIO). You can see this link :&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/364/lfclk-32khz-on-a-gpio-pin-for-precision-measurement/1905#1905"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/364/lfclk-32khz-on-a-gpio-pin-for-precision-measurement/1905#1905&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;2. What is PCLK32KI shown in Clock control Figure 20 of&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf"&gt;https://infocenter.nordicsemi.com/pdf/nRF52840_PS_v1.1.pdf&lt;/a&gt;&lt;/strong&gt;&lt;span&gt;&lt;strong&gt;&amp;nbsp;? How is it accessible, please share code snippet.&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;strong&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1657215331547v1.png" alt=" " /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;This is output of the 32.768 KHZ low frequency crystal. But it is internally controlled inside IC. There is no option to get an output on this GPIO. pin.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>