<?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 read timer&amp;#39;s current count</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7944/how-to-read-timer-s-current-count</link><description>Hi, 
 I am using nRF51822 and implemented timer-2 with 2 sec capture/compare interrupt rate. But if I want to read timer&amp;#39;s current count before it generates interrupt or from out of ISR, how to read this count?? from which register I can get current</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Oct 2016 05:35:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7944/how-to-read-timer-s-current-count" /><item><title>RE: How to read timer's current count</title><link>https://devzone.nordicsemi.com/thread/28421?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 05:35:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c7f497-0dfb-4d74-8aaa-658e9a77a918</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;Incorrect, it&amp;#39;s&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_TIMER2-&amp;gt;TASKS_CAPTURE[0] = 1;
counter = NRF_TIMER2-&amp;gt;CC[0];
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read timer's current count</title><link>https://devzone.nordicsemi.com/thread/28420?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 05:17:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:248dd9d4-9d92-49b0-9c71-a818eef24a22</guid><dc:creator>edward lai</dc:creator><description>&lt;p&gt;NRF_TIMER2-&amp;gt;TASKS_CAPTURE[0];
counter = NRF_TIMER2-&amp;gt;CC[0];&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read timer's current count</title><link>https://devzone.nordicsemi.com/thread/28419?ContentTypeID=1</link><pubDate>Thu, 02 Jul 2015 12:14:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd6dfadd-b69c-4806-bf22-d11eaa9dad09</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Premji: You can trigger a CAPTURE[n] task and the value of the counter will be stored in the CC[n] register. Have a look at chapter 18 in nRF51 Reference Manual.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>