<?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>RTC(s) interrupts and events</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54917/rtc-s-interrupts-and-events</link><description>Hello all. 
 I need to work with the RTC especially its events and interrupts, and I have some misunderstanding after read its manual. 
 I need to use it for low power systick with embOS RTOS of Segger and for calendar. 
 I see there is 3 RTC, 3 compares</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 27 Nov 2019 14:21:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54917/rtc-s-interrupts-and-events" /><item><title>RE: RTC(s) interrupts and events</title><link>https://devzone.nordicsemi.com/thread/222392?ContentTypeID=1</link><pubDate>Wed, 27 Nov 2019 14:21:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71b923ea-c941-4a8f-a00f-db370b26058f</guid><dc:creator>ovrebekk</dc:creator><description>&lt;p&gt;Hi Bar&lt;/p&gt;
&lt;p&gt;The nRF52840 has 3 separate RTC modules (RTC0, RTC1 and RTC2), and each of these has&amp;nbsp;one PRESCALER register and 4 CC registers (CC[0], CC[1], CC[2] and CC[3]).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. As mentioned above the 3 RTC&amp;#39;s have independent PRESCALER registers.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2. Yes, 3 separate RTC counters with 4 CC registers each.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;3. There is 1 TICK event and 4 COMPARE events for each of the 3 RTC modules.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Most peripherals in the nRF52 series only have the INTEN register, but since the RTC is optimized for ultra low power consumption they also added the EVTEN register which allows you to disable or enable events completely.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you only need to pass an event over the PPI peripheral to a task in some other peripheral then you only need to enable the event in EVTEN. If you also want the event to generate an interrupt you need to enable it in INTEN also.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Events that you don&amp;#39;t use for anything should be disabled in both INTEN and EVTEN to reduce&amp;nbsp;the current consumption in sleep.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;br /&gt;Torbjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>