<?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>Measuring HFCLK using LFCLK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/120698/measuring-hfclk-using-lfclk</link><description>Our design has an nRF5340 with a 32 MHz high frequency crystal and an accurate 32 kHz external rail to rail clock chip (+/- 5 ppm @ 25 C). We would like to measure the actual frequency of the HFXO frequency using the 32 kHz clock. I&amp;#39;m using the following</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 15 Apr 2025 13:46:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/120698/measuring-hfclk-using-lfclk" /><item><title>RE: Measuring HFCLK using LFCLK</title><link>https://devzone.nordicsemi.com/thread/531860?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 13:46:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af316959-d9dd-4d1a-aee4-acb2ba4df323</guid><dc:creator>denis</dc:creator><description>&lt;p&gt;We want to synchronize as much as possible the two clock domains. &amp;nbsp;The LFCLK is used for the RTC. &amp;nbsp;The HFCLK is used to generate clocks for sensors. &amp;nbsp;The goal is to align those two so that they don&amp;#39;t drift apart over the long term.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Measuring HFCLK using LFCLK</title><link>https://devzone.nordicsemi.com/thread/531853?ContentTypeID=1</link><pubDate>Tue, 15 Apr 2025 13:23:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787ada0a-5236-413a-aa49-2988a9a4baf5</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Denis,&lt;/p&gt;
&lt;p&gt;I do not see a fundamental problem with your approacah, as it is using digital logic and counters, which does not introduce any uncertainty. However,&amp;nbsp;as the LFCLK and HFCLK are independent&amp;nbsp;you have a clock crossing when you trigger PPI via the RTC. But the (average) effect of this is reduceed by increasing the time you count timer ticks, increasing the time you test could be an idea. Other than that, any additional variation should come from variations in the two oscillators.&lt;/p&gt;
&lt;p&gt;Out curiosity, may I ask why you are doing this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>