<?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>Global Clock on nRF51822?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/105/global-clock-on-nrf51822</link><description>Seems like the timer API uses low priority interrupts. Now, I dont need the timer triggers to be exactly delivered so that is fine ... however, i do need to know the exact time between current and last timer trigger. Is there a way to query a clock tick</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 17 Jul 2013 08:50:18 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/105/global-clock-on-nrf51822" /><item><title>RE: Global Clock on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/597?ContentTypeID=1</link><pubDate>Wed, 17 Jul 2013 08:50:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5d197559-b762-4efe-b328-45061cf8019e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can use TIMER1 or TIMER2 for this. It&amp;#39;s sourced by the 16M, so it should give you a good enough resolution.&lt;/p&gt;
&lt;p&gt;One thing I&amp;#39;m a bit concerned about is the real-time requirements that you have. As you are already aware of it seems, the stack will block the main application for a given time based on how often and how much data you are sending.&lt;/p&gt;
&lt;p&gt;How often is the gyro-sampling-routine called?
I know you sample x samples each ms, but I assume it&amp;#39;s not sampling every 10 us for eternity?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global Clock on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/598?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2013 16:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2780267-e770-4a60-a128-2236cf2fe42d</guid><dc:creator>Guest</dc:creator><description>&lt;p&gt;Hmm, not really, its for an integration of a gyroscope signal. I do 100 samples / millisecond so looking for something on the order of microseconds if possible.&lt;/p&gt;
&lt;p&gt;The problem i see is that, if say the app_timer interrupt was pushed back due to a high priority interrupt (like BLE stack) it would cause delayed calls to the timer interrupt handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global Clock on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/596?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2013 16:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88fface4-c614-49fa-8d7b-475aefd36a67</guid><dc:creator>Bastiaan</dc:creator><description>&lt;p&gt;Hmm, not really, its for an integration of a gyroscope signal. I do 100 samples / millisecond so looking for something on the order of microseconds if possible.&lt;/p&gt;
&lt;p&gt;The problem i see is that, if say the app_timer interrupt was pushed back due to a high priority interrupt (like BLE stack) it would cause delayed calls to the timer interrupt handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Global Clock on nRF51822?</title><link>https://devzone.nordicsemi.com/thread/595?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2013 11:00:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6161f672-f0f9-4ae7-a3a1-f866e31d7540</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you going to use a timer to track time? Like having a variable that shows minutes/seconds/ms/etc?&lt;/p&gt;
&lt;p&gt;If you use the app_timer library, you can setup functions that are called every x millisecond.
Using this you can setup a global variable that is incremented (in the app_timer callback function) each time it&amp;#39;s called.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>