<?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>Questions about rtc example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71812/questions-about-rtc-example</link><description>Hi, all 
 I&amp;#39;m using nRF52840, pca10056. 
 
 I have a question about the rtc example of peripheral. 
 I want to know the difference between &amp;#39;nrf_drv_rtc_init&amp;#39; and &amp;#39;nrf_drv_rtc_cc_set&amp;#39; exactly. 
 
 What I confusing : 
 1. I changed config.prescaler value</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Feb 2021 12:48:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71812/questions-about-rtc-example" /><item><title>RE: Questions about rtc example</title><link>https://devzone.nordicsemi.com/thread/295563?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 12:48:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3387f52d-86bc-4d62-9286-e759b11ef57e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;1. The &lt;span&gt;&lt;a title="  PRESCALER  " href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=4_2_0_24_9_6#register.PRESCALER"&gt;PRESCALER &lt;/a&gt;&lt;/span&gt;&lt;span&gt;register is 12 bit, which means that 4095 is the largest prescaler setting you can use. Please see the &amp;quot;&lt;a title="Resolution versus overflow and the PRESCALER" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=4_2_0_24_1#concept_iwc_1mj_sr"&gt;Resolution versus overflow and the PRESCALER&lt;/a&gt;&amp;quot; section of the PS for more examples of how you can calculate the frequency. &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. This function sets the CC[x] registers to use the &lt;a title="Compare feature" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/rtc.html?cp=4_2_0_24_6#compare_feature"&gt;Compare feature&lt;/a&gt;, and it controls the interval at which the NRF_DRV_RTC_INT_COMPAREx event is triggered ( 3 seconds by default)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. Interrupts are cleared when the program exits your rtc_handler() function. This allows the RTC to trigger a new interrupt next time the NRF_DRV_RTC_INT_COMPARE0 or the NRF_DRV_RTC_INT_TICK event occurs.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>