<?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>RTC1 interrupt does&amp;#39;t trigger, and what&amp;#39;s event counter?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22701/rtc1-interrupt-does-t-trigger-and-what-s-event-counter</link><description>I&amp;#39;m try to use RTC1 to generate overflow interrupt, but it doesn&amp;#39;t trigger interrupt. 
 void RTC1_IRQHandler(void)
{
 // do something
}

main()
{
 NRF_RTC1-&amp;gt;TASKS_STOP = 1;
 NRF_RTC1-&amp;gt;INTENSET = 0x2; // enable OVRFLW interrupt
// NVIC_SetVector</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jun 2017 13:21:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22701/rtc1-interrupt-does-t-trigger-and-what-s-event-counter" /><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89253?ContentTypeID=1</link><pubDate>Mon, 19 Jun 2017 13:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be146def-97db-4d77-af03-12770d2d8a57</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;For the  EVENTS_LFCLKSTARTED to trigger, the NRF_CLOCK-&amp;gt;INTENSET register has to be set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89251?ContentTypeID=1</link><pubDate>Sat, 17 Jun 2017 23:55:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a1ba5fa7-e161-4a6c-87ea-6471e2837670</guid><dc:creator>akita</dc:creator><description>&lt;p&gt;I&amp;#39;ve checked LFCLK status for details (in main(), after mbed&amp;#39;s startup and initialization codes), by reading related register as follows:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;NRF_CLOCK-&amp;gt;LFCLKRUN             0x1     : task triggered&lt;/li&gt;
&lt;li&gt;NRF_CLOCK-&amp;gt;LFCLKSTAT           0x10000 : LFCLK running, src=RC osc&lt;/li&gt;
&lt;li&gt;NRF_CLOCK-&amp;gt;EVENTS_LFCLKSTARTED  0x0   : LFCLK not started?&lt;/li&gt;
&lt;li&gt;NRF_CLOCK-&amp;gt;LFCLKSRC             0x0    : src=RC osc&lt;/li&gt;
&lt;li&gt;NRF_CLOCK-&amp;gt;LFCLKSRCCOPY     0x0     : src=RC osc&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;LFCLKSTAT=0x10000 means that LFCLK is running with RC oscillarator, however, I wonder that EVENTS_LFCLKSTARTED is 0x0...?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89252?ContentTypeID=1</link><pubDate>Thu, 15 Jun 2017 13:13:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af9ebbe0-7283-4400-ae88-9ce6dcb77187</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Before starting the LFCLK, it has to be configured, by setting the clock source  and the CTIV. CTIV should only be necessary if the internal RC oscillator is being used.  To start the LFCLK you should do the following:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_CLOCK-&amp;gt;LFCLKSRC = clock source
NRF_CLOCK-&amp;gt;CTIV     = ...
NRF_CLOCK-&amp;gt;TASKS_LFCLKSTART = 1;
while(EVENTS_LFCLKSTARTED == 0)
{
}
// continue
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Could you check if making sure that the LFCLK is running change anything?&lt;/p&gt;
&lt;p&gt;I wouldn&amp;#39;t think that the RTC would increment if the LFCLK is not running..but if it is incrementing while the clock is not running, I would think it is quite unreliable.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89250?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 23:32:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bf3c721-ce7c-4a5d-8561-bca364359b49</guid><dc:creator>akita</dc:creator><description>&lt;p&gt;I&amp;#39;ve checked LFCLKSTAT indicates that LFCLK is not running.
I&amp;#39;ve tried to start it (writing 1 to LFCLKSTART), but LFCLKSTAT still indicates that LFCLK is not running.
I&amp;#39;ll continue to debug it, but I wonder that RTC1 actually increments, even if LFCLK seems to not running; this is right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89254?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 11:43:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76d9e408-fc2a-4a4c-acc5-b32c46841996</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Could you double check if the LFCLK is running by reading the LFCLKSTAT register?  That will make the debugging easier.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89249?ContentTypeID=1</link><pubDate>Wed, 14 Jun 2017 05:54:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aee8457-81e5-4c3a-8164-32deb0c748ab</guid><dc:creator>akita</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m sure LFCLK has started in startup routine in mbed (I&amp;#39;m using mbed-compiler for programming).
Does RTC1&amp;#39;s counter increments even if LFCLK doesn&amp;#39;t start? (In my situation ,I&amp;#39;ve confirmed that RTC1&amp;#39;s counter increments at specified speed by prescaler.)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89248?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 11:20:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a7650320-3e90-4114-a8e5-da9d5c203d56</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;EVENTS_TICK register will never contain any other value than &lt;code&gt;1&lt;/code&gt; or &lt;code&gt;0&lt;/code&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RTC1 interrupt does't trigger, and what's event counter?</title><link>https://devzone.nordicsemi.com/thread/89255?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2017 11:16:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2957de8-cd2b-4a4e-a411-cff484ba71cb</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Did you remember to start  the LFCLK before starting the RTC?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>