<?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 get a timer(not RTC) counter value?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69340/how-to-get-a-timer-not-rtc-counter-value</link><description>Hi,All: 
 As the topic?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Dec 2020 11:29:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69340/how-to-get-a-timer-not-rtc-counter-value" /><item><title>RE: How to get a timer(not RTC) counter value?</title><link>https://devzone.nordicsemi.com/thread/284304?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 11:29:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7893aa06-e447-4d02-a470-9b15471ec048</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi Jorgen:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; HAHA.Thank you very much. I guess I can&amp;#39;t read cc at current timer channel,it must be another channel.Thank you!&lt;/p&gt;
&lt;p&gt;Pls close this topic.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a timer(not RTC) counter value?</title><link>https://devzone.nordicsemi.com/thread/284301?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 11:25:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a01d2b4-06bf-47ec-90d2-3330405766f9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you post the code you used for reading it? What variable type do you store it in when reading?&lt;/p&gt;
&lt;p&gt;The timer should always count upwards, and will overflow when it reaches the end of the CC register, it should not stop until you trigger the STOP task.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a timer(not RTC) counter value?</title><link>https://devzone.nordicsemi.com/thread/284299?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 11:21:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f1675a0-52df-448c-828d-212cb6319c4d</guid><dc:creator>wzszzxj</dc:creator><description>&lt;p&gt;Hi,Jargen:&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; HAHA.Thank you very much. I guess I can&amp;#39;t read cc at current timer channel,it must be another channel.Thank you!&lt;/p&gt;
&lt;p&gt;Pls close this topic.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to get a timer(not RTC) counter value?</title><link>https://devzone.nordicsemi.com/thread/284292?ContentTypeID=1</link><pubDate>Thu, 10 Dec 2020 10:56:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fd390f5-6d02-4e9a-83d1-7beefd7d977b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;By triggering the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/timer.html?cp=4_0_0_5_29_0#register.TASKS_CAPTURE-0-5"&gt;TASKS_CAPTURE[x]&lt;/a&gt;&amp;nbsp;task and reading the corresponding&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/timer.html?cp=4_0_0_5_29_0#register.CC-0-5"&gt;CC[x]&lt;/a&gt;&amp;nbsp;register.&lt;/p&gt;
&lt;p&gt;You can also use the driver function&amp;nbsp;&lt;a title="nrfx_timer_capture" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/group__nrfx__timer.html?cp=7_1_6_8_0_37_1_6#gae398466a8a82d9c5f2c1865140de4384"&gt;nrfx_timer_capture&lt;/a&gt;(), which will &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/v1.8.4/drivers/src/nrfx_timer.c#L188-L190"&gt;do both for you&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>