<?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>Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/93067/setting-the-value-of-timer-peripheral-while-running</link><description>Hi, 
 
 In the product specification document of nRF52840 it says that in order to read the counter register&amp;#39;s value I need to set the capture task NRF_TIMER1-&amp;gt;TASKS_CAPTURE = 1 and then I can read the timer ticks value from the corresponding CC[n]. Register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 21 Oct 2022 12:47:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/93067/setting-the-value-of-timer-peripheral-while-running" /><item><title>RE: Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/thread/391902?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 12:47:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a789ad12-b1f7-44f7-8318-deb880b60258</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I see. I do not have any other suggestions than using an offset that you handle in SW unfortunately, as there is simply no way to directly access the internal counter register.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/thread/391804?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 08:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:257512a5-f0ef-491e-a629-c1b02b48d275</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;I need to keep timestamps for my raw data. For this reason I have an external RTC module and the internal msec timer (TIMER1). The problem is that they come out of sync every once in a while. So I need to add subtract from the msec timer to keep RTC and Timer1 in sync.&lt;/p&gt;
&lt;p&gt;I could use events for this but I need the microcontroller to be in sleep mode most of the time&amp;nbsp; and wake up only in certain cases. &lt;br /&gt;&lt;br /&gt;Thank you for your help &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/thread/391803?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 08:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:457f7b20-438b-45b4-a297-c2c08227f7c4</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;You cannot write to the internal counter in counter mode either (other than inputting the required amount of&amp;nbsp;pulses to count to where you want to be).&lt;/p&gt;
&lt;p&gt;What is it you want to acomplish? Can it be achieved in some other way (using an offset or something else)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/thread/391792?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 07:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3653e7d-706a-4480-88e8-a14597f0b647</guid><dc:creator>masterLee</dc:creator><description>&lt;p&gt;Any suggestions on how this can be done ( counter mode maybe)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setting the value of timer peripheral while running</title><link>https://devzone.nordicsemi.com/thread/391779?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2022 06:25:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8397b4cd-6ff0-4083-821c-cf1f83bfd042</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You cannot set the internal counter to a specific value (except from&amp;nbsp;clearing it to 0).&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>