<?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>Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/79578/tracking-current-time-in-nrf9160</link><description>Hi, 
 we are using NRF9160 based Custom board with Zephyr, 
 I want to track the Current time in IST format and i need to generate an event to DPPI on particular time (ex: every day10am), but i am not understanding where to start, so please help me to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 24 Sep 2021 14:45:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/79578/tracking-current-time-in-nrf9160" /><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/331127?ContentTypeID=1</link><pubDate>Fri, 24 Sep 2021 14:45:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41c109da-0755-4fbe-9f74-082ae17e18a2</guid><dc:creator>Hakon</dc:creator><description>[quote user="Rajender"]1. how can i update cc[0] with latest compare value to get event for next second without event handler[/quote]
&lt;p&gt;You can use this &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Frtc.html&amp;amp;cp=2_0_0_5_10_8_2&amp;amp;anchor=register.TASKS_CLEAR"&gt;register&lt;/a&gt; to clear it.&lt;/p&gt;
[quote user="Rajender"]2. how can i increment a variable by mapping with DPPI after a &lt;span&gt;NRFX_RTC_INT_COMPARE0&amp;nbsp;event(here i want to increment my seconds variable)&lt;/span&gt;[/quote]
&lt;p&gt;You can use &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Ftimer.html&amp;amp;cp=2_0_0_5_15"&gt;timer counter mode&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Also, have you considered using the &lt;a href="https://docs.zephyrproject.org/latest/reference/kernel/timing/timers.html"&gt;Zephyr timer library&lt;/a&gt; to keep track of time? It seems like an easier solution than yours.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/330563?ContentTypeID=1</link><pubDate>Wed, 22 Sep 2021 05:56:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e03e69be-e8cd-4d5a-991c-bbe3f4c1660c</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;We want to track the current time with the help of a variable &amp;quot;seconds&amp;quot;, so we need to update seconds variable for every second by using DPPI after&amp;nbsp;&lt;span&gt;NRFX_RTC_INT_COMPARE0&amp;nbsp;event without event handler.&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;Rajender&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/330508?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 13:46:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:303cee16-3f1d-492a-9781-bfa8b3cf9f75</guid><dc:creator>Hakon</dc:creator><description>[quote user=""]I want to track the Current time in IST format and i need to generate an event to DPPI on particular time (ex: every day10am)[/quote]
&lt;p&gt;&lt;br /&gt; What task will you connect the DPPI event to?&lt;br /&gt; What is it for ? Toggling a LED, or something else?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/330383?ContentTypeID=1</link><pubDate>Tue, 21 Sep 2021 06:39:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:822dc181-f43c-49cf-8b96-e11ab33b84bb</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi hakon,&lt;/p&gt;
&lt;p&gt;any update for me?&lt;/p&gt;
&lt;p&gt;1. how can i update cc[0] with latest compare value to get event for next second without event handler&lt;/p&gt;
&lt;p&gt;NOTE: How can i config &lt;span&gt;NRFX_RTC_INT_COMPARE0&lt;/span&gt;&lt;span&gt;&amp;nbsp;event to repeat itself after cc[0] register value, i have seen this in nrf_calendar.h, in which compare event triggering it self repeatedly.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/nrf5-calendar-example/blob/master/nrf_calendar.c"&gt;https://github.com/NordicPlayground/nrf5-calendar-example/blob/master/nrf_calendar.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. how can i increment a variable by mapping with DPPI after a &lt;span&gt;NRFX_RTC_INT_COMPARE0&amp;nbsp;event(here i want to increment my seconds variable)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&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;Rajender&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/329995?ContentTypeID=1</link><pubDate>Fri, 17 Sep 2021 11:03:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2337131a-415e-40fe-9471-342d5d32096b</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;finally now i can toggle my led with RTC event&amp;nbsp;&lt;span&gt;NRFX_RTC_INT_TICK&amp;nbsp;&lt;/span&gt;,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But i want to add&amp;nbsp;NRFX_RTC_INT_COMPARE0 event to DPPI, here my problem to add&amp;nbsp;NRFX_RTC_INT_COMPARE0 event is, i need to reload compare register value every time to generate the event for next 1 sec. so how can i do that without event handler (i dont want to use any event handler for RTC, becoz i dont want to disturb CPU for every single second)&lt;/p&gt;
&lt;p&gt;is it possible to call a function uisng dppi after event triggered?&lt;/p&gt;
&lt;p&gt;for your reference i am attaching my working project for rtc+dppi+gpio&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/working_5F00_timer_5F00_test_5F00_nrfx.zip"&gt;devzone.nordicsemi.com/.../working_5F00_timer_5F00_test_5F00_nrfx.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&lt;/p&gt;
&lt;p&gt;Rajender&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/329854?ContentTypeID=1</link><pubDate>Thu, 16 Sep 2021 12:58:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1332a1f8-8d0a-4070-9f85-0bb1b8999285</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;have you looked at &lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/v2.6.99-ncs1-snapshot1/samples/boards/nrf/nrfx/src/main.c"&gt;this code&lt;/a&gt;? It shows how DPPI can be configured properly. One thing that you are missing is allocating the DPPI channel with nrfx_dppi_channel_alloc().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Tracking Current Time in NRF9160</title><link>https://devzone.nordicsemi.com/thread/329617?ContentTypeID=1</link><pubDate>Wed, 15 Sep 2021 12:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:755da302-403a-4a4f-97b6-e3cc91475de4</guid><dc:creator>Rajender</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;i have successfully implemented DPPI with GPIOTE, (for button press dppi will toggle led), and i have implemented RTC with NRFX_RTC_INT_TICK,&amp;nbsp;NRFX_RTC_INT_COMPARE0 events, so my final goal is to combine these two and toggling LED when the&amp;nbsp;NRFX_RTC_INT_COMPARE0 event occurs,&lt;/p&gt;
&lt;p&gt;so please help me this, im attaching my DPPI, RTC and RTC+DPPI please let me know where i have been making mistake&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/working_2D00_blinky_2D00_ppi.zip"&gt;devzone.nordicsemi.com/.../working_2D00_blinky_2D00_ppi.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrfx_5F00_rtc_5F00_working.zip"&gt;devzone.nordicsemi.com/.../nrfx_5F00_rtc_5F00_working.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/timer_5F00_test_5F00_nrfx.zip"&gt;devzone.nordicsemi.com/.../timer_5F00_test_5F00_nrfx.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Note: This timer_test_nrfx.zip is the final RTC+DPPI project&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Rajender.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>