<?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 to use timer to to count periodically</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73039/how-to-use-timer-to-to-count-periodically</link><description>I want to use a timer to get a fixed time interval, so I use a 32-bit timer to count from 0 to 10000, and use PPI to clear the counter when it is captured to 10000, such as: 
 NRF_PPI-&amp;gt;CH[0].EEP = (uint32_t)&amp;amp;NRF_TIMER3-&amp;gt;TASKS_CAPTURE[2];
NRF_PPI-&amp;gt;CH[0</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 21 Mar 2021 16:06:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73039/how-to-use-timer-to-to-count-periodically" /><item><title>RE: How to use timer to to count periodically</title><link>https://devzone.nordicsemi.com/thread/301088?ContentTypeID=1</link><pubDate>Sun, 21 Mar 2021 16:06:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b1896b-7b26-48dd-b43d-29e1529a79b5</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;There should not be any delay, if you set CC[2] to 10000, timer will count 9998&amp;rarr;9999&amp;rarr;0&amp;rarr;1...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use timer to to count periodically</title><link>https://devzone.nordicsemi.com/thread/301070?ContentTypeID=1</link><pubDate>Sun, 21 Mar 2021 12:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87376ee7-14a6-48e7-b095-083bb8b203fc</guid><dc:creator>Marmalade</dc:creator><description>&lt;p&gt;Sorry for my mistake.&lt;/p&gt;
&lt;p&gt;If I use&amp;nbsp;&lt;span&gt;NRF_TIMER3-&amp;gt;EVENTS_COMPARE[2] to trigger TASKS_CLEAR, will the timer resets to 0&amp;nbsp;instantly without any delay? Or is there any method to eliminate that delay?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use timer to to count periodically</title><link>https://devzone.nordicsemi.com/thread/301041?ContentTypeID=1</link><pubDate>Sat, 20 Mar 2021 11:02:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68b92d7-6084-4cea-ace9-8f4ab2a348a7</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;pre&gt;EEP should point to an event, such as NRF_TIMER3-&amp;gt;EVENTS_COMPARE[2].&lt;br /&gt;Use of shortcut is preferable but the behavior should be the same - the timer resets just hitting CC[2].&lt;/pre&gt;
&lt;pre&gt;&lt;code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>