<?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>How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12368/how-do-i-create-nested-timer</link><description>HI,
i want to have a application in which a timer timeout say 5 second. and during this timeout there is another timer say 1 second. whenever the 1sec timer timeouts then it executes some function. and whenever the 5 second timer timeouts then it restarts</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2016 10:41:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12368/how-do-i-create-nested-timer" /><item><title>RE: How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/thread/46769?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 10:41:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09455894-f16c-484d-b3fe-084df7a2bfea</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Yeah, that was for nRF51 :) nRF52 has it: &lt;a href="https://devzone.nordicsemi.com/question/51531/how-to-set-systick-timer-in-nrf52/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/thread/46770?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 10:25:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5f32e188-5621-453e-8ea1-f41e627e31ff</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Ah - so it isn&amp;#39;t.
:-(&lt;/p&gt;
&lt;p&gt;That&amp;#39;s nRF5&lt;strong&gt;1&lt;/strong&gt; (Cortex-M0) - what about nRF5&lt;strong&gt;2&lt;/strong&gt; (Cortex-M4) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/thread/46768?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 10:09:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94945af-57e1-4eae-b51e-57f14c888443</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;SysTick timer is actually not implemented on the nRF, see &lt;a href="https://devzone.nordicsemi.com/question/79/does-the-nrf51822-have-a-systick-timer/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/thread/46766?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 09:47:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:576441d3-d505-4ad5-b4ee-79936f6aa724</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Your code creates one timer that executes timer_handler() every 2s and one timer that executes wait_timer_handler() every 100ms. If the handler should only be executed once, you can configure it as APP_TIMER_MODE_SINGLE_SHOT. A timer can be started inside another timer handler. I recommend to read the &lt;a href="https://devzone.nordicsemi.com/tutorials/19"&gt;app_timer tutorial&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do i Create Nested Timer</title><link>https://devzone.nordicsemi.com/thread/46767?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 09:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:011124a7-6767-4d75-ac8c-206018651c73</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The usual approach is to have a single &amp;quot;real&amp;quot; (hardware) timer producing a timebase (or &amp;quot;tick&amp;quot;) and have software timers driven from that.&lt;/p&gt;
&lt;p&gt;On Cortex-M, the &lt;strong&gt;SysTick&lt;/strong&gt; timer is ideal for this ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>