<?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>Interrupt using RTC</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59176/interrupt-using-rtc</link><description>I want to monitor the RTC count and generate an interrupt when a specific count is reached. And without stopping the RTC, I want to generate an interrupt again when the next specific value is reached. Rather than restarting like a timer, the RTC must</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Sep 2020 07:58:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59176/interrupt-using-rtc" /><item><title>RE: Interrupt using RTC</title><link>https://devzone.nordicsemi.com/thread/271246?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 07:58:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1e49541-f466-4d43-ab3b-c45cfd7e7bff</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;That depends on how you have configured the RTC peripheral. The RTC driver will &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_rtc.c#L291"&gt;disable the interrupts in the interrupt handler&lt;/a&gt;. If you want the interrupt to be triggered after an overflow, you will need to remove this line, or call&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__drv__rtc.html#ga73a902b210a7f1fbf9bc9b6ec26a4a26"&gt;nrf_drv_rtc_cc_set&lt;/a&gt;() again to re-enable the interrupt. It is also possible to enable interrupts for the overflow event, by calling&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrf__drv__rtc.html#ga83e4f0a2a50262ed957ba1232cee3d95"&gt;nrf_drv_rtc_overflow_enable&lt;/a&gt;().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt using RTC</title><link>https://devzone.nordicsemi.com/thread/271238?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2020 07:38:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:129a584b-e0d9-4cd7-9963-0c4d3162d41d</guid><dc:creator>hrms</dc:creator><description>&lt;p&gt;How can I keep working even if the RTC overflows and clears?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt using RTC</title><link>https://devzone.nordicsemi.com/thread/240185?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 09:15:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5ae3203-2c14-4b2d-88fb-616e9f7edd92</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The RTC peripheral has &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/rtc.html#register.CC-0-3"&gt;3-4 CC registers&lt;/a&gt; that you can set to different count values, The RTC will run until you &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__drv__rtc.html#ga7907024160b8c442cad4007258f88136"&gt;clear it&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you are using the RTC driver in the SDK, you can use &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__nrf__drv__rtc.html#ga73a902b210a7f1fbf9bc9b6ec26a4a26"&gt;nrf_drv_rtc_cc_set&lt;/a&gt;() to set multiple CC values, the second parameter to the function depicts the CC channel number.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Interrupt using RTC</title><link>https://devzone.nordicsemi.com/thread/240156?ContentTypeID=1</link><pubDate>Tue, 17 Mar 2020 06:11:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1cf039b-402e-42a4-a991-9801c30065cd</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;Yes - and it is already implemented in the app_timer module of the nrf sdk.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>