<?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>GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/122953/grtc-periodic-interval-nrfx</link><description>Hi, 
 I recently found out about the Periodic interval feature on GRTC CC[0] and it seems like it would be quite useful for my application. Most of my code so far uses the nrfx drivers. Looking at the nrfx: GRTC driver page it seems that there are no</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 06 Oct 2025 20:31:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/122953/grtc-periodic-interval-nrfx" /><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550745?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 20:31:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2c6d486-f1d1-4bf7-aa0b-2d41c9963ee4</guid><dc:creator>sasodoma</dc:creator><description>&lt;p&gt;Thanks for the detailed explanation. In retrospect, it makes sense for the GRTC to be synchronized to the LFCLK since that is the one which is always running, the HFCLK isn&amp;#39;t even synchronized to itself since it is stopped and started. Since asking this question I have kind of figured this out myself, though I was never quite sure if that&amp;#39;s how it actually works so this was helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550743?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 19:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c6a6649-b9ed-4cdc-975b-9d239d7860a7</guid><dc:creator>Mark Rages</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/priyankakesav"&gt;Priyanka&lt;/a&gt;&amp;nbsp;do you have any information about the use of CC[0] by the Bluetooth stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550664?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 09:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59248786-aace-4850-b69f-78b64c82dd77</guid><dc:creator>Emil Lenngren</dc:creator><description>[quote userid="144819" url="~/f/nordic-q-a/122953/grtc-periodic-interval-nrfx/542624"]I noticed that the SYSCOUNTER will drift with respect to a timer that runs from the HFCLK. Is there any way I can prevent this drift?[/quote]
&lt;p&gt;This is correct. The GRTC is synchronised towards the low frequency clock. When not active, the time is based solely on the low frequency clock. When active, it will use the HFCLK to be able to generate one tick approximately every microsecond, but the GRTC is in that case calibrated towards the low frequency clock at every low frequency clock tick. In practice, since the HFCLK is 16 MHz but the GRTC generates ticks with a 1 MHz resolution, the GRTC will in practice generate one tick with an interval between 14 and 18 HFCLK ticks, depending on the low frequency clock. This is to stay synchronised with the low frequency clock.&lt;/p&gt;
&lt;p&gt;That said, if you have HFXO started and let the GRTC be in active mode for a long time, the timing from GRTC will still follow the low frequency clock and not HFXO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550661?ContentTypeID=1</link><pubDate>Mon, 06 Oct 2025 08:52:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d629c095-1bc6-4ce0-983d-c2112c2e850e</guid><dc:creator>Priyanka</dc:creator><description>&lt;p&gt;We&amp;nbsp;suppose this is because GRTC internally runs off the LFCLK, preferably LFXO, which allows it to keep precise timing even through systemoff. When CPU is active, this LFCLK time is synched to the HFCLK to allow events/interrupt on 1 us granularity. So the drift seen is probably the LFXO vs HFXO.&lt;/p&gt;
&lt;p&gt;-Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550610?ContentTypeID=1</link><pubDate>Fri, 03 Oct 2025 15:10:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:062b7a20-d2fa-4e9f-bbbb-b0939cebddc4</guid><dc:creator>sasodoma</dc:creator><description>&lt;p&gt;I am also interested if there was any clarification of the behaviour, but for what it&amp;#39;s worth, I have since implemented the periodic interrupt in another channel, using the &lt;code&gt;grtc_handler&lt;/code&gt; to&amp;nbsp;perform the modification of the CC value right after the compare match.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/550514?ContentTypeID=1</link><pubDate>Thu, 02 Oct 2025 15:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ae9cc6-8c16-47be-af66-aeeb489a6f75</guid><dc:creator>Mark Rages</dc:creator><description>&lt;p&gt;Did you ever get an answer for this?&amp;nbsp; I am also interested in using a periodic interrupt from LFCLK and CC[0] seems to be the only way to accomplish it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/542718?ContentTypeID=1</link><pubDate>Thu, 17 Jul 2025 08:02:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eabfa4f9-088a-4139-bff2-7b663862dafd</guid><dc:creator>Priyanka</dc:creator><description>[quote user="sasodoma"]After further testing it seems to me that the GRTC CC[0] is used by the BLE drivers and I can&amp;#39;t use it for my application if I also want BLE. Is this correct?[/quote]
&lt;p&gt;This looks right to me.&lt;/p&gt;
&lt;p&gt;I will nevertheless check all your queries internally with the team and get back to you.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Priyanka&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GRTC Periodic interval + nrfx</title><link>https://devzone.nordicsemi.com/thread/542624?ContentTypeID=1</link><pubDate>Wed, 16 Jul 2025 10:09:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8989a19-8de6-492f-864e-cb54b7c8f553</guid><dc:creator>sasodoma</dc:creator><description>&lt;p&gt;After further testing it seems to me that the GRTC CC[0] is used by the BLE drivers and I can&amp;#39;t use it for my application if I also want BLE. Is this correct?&lt;br /&gt;&lt;br /&gt;Additionally I would like to know, how I can ensure that the GRTC SYSCOUNTER always runs from the 16 MHz clock. The product specification states &amp;quot;&lt;span&gt;It uses the 16 MHz clock when the high-speed clock is active&amp;quot;. In my application I have the HFXO always enabled because I need precise timing. I noticed that the SYSCOUNTER will drift with respect to a timer that runs from the HFCLK. Is there any way I can prevent this drift?&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Sa&amp;scaron;o Domadenik&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>