<?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>Method of high precision timer count</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48004/method-of-high-precision-timer-count</link><description>OS in development environment ：Windows7 HARD :(Taiyo Yuden)EBSHSN Series Evaluation Board : Central / Peripherals CPU :(Nordic) nRF52832 / ARMR Cortex?-M4F 32 bit processor 28-pin Land Grid Array / 15GPIOs / SWD Soft Ver:nRF5_SDK_15.2.0_9412b96 
 Timer</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 04 Jun 2019 10:40:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48004/method-of-high-precision-timer-count" /><item><title>RE: Method of high precision timer count</title><link>https://devzone.nordicsemi.com/thread/190728?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 10:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7a3d09b-68aa-4376-abf5-54b842fb681e</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;You can use interrupt priority 2, as levels 0 and 1 are reserved for the softdevice:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html?cp=3_4_1_0_15_1"&gt;https://infocenter.nordicsemi.com/topic/sds_s132/SDS/s1xx/processor_avail_interrupt_latency/exception_mgmt_sd.html?cp=3_4_1_0_15_1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Method of high precision timer count</title><link>https://devzone.nordicsemi.com/thread/190637?ContentTypeID=1</link><pubDate>Tue, 04 Jun 2019 00:20:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:488561b5-6530-479d-8b2c-74aa46bc3413</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;I am using HFXO (32 MHz crystal).&lt;br /&gt;I would like to raise the priority of the timer interrupt so as not to affect the BLE communication function. How far can you raise it?&lt;br /&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Method of high precision timer count</title><link>https://devzone.nordicsemi.com/thread/190494?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 11:59:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3387c1a-1e8c-4497-8b30-5aecdb457e79</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Timer-wise, both should have the same accuracy.&lt;/p&gt;
&lt;p&gt;Both implementations use the CPU for incrementing a variable, where the PPI example uses two timers, one in counter mode, and one in capture/compare mode.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To get an accurate timer, remember to start the external HFCLK (NRF_CLOCK-&amp;gt;TASKS_HFCLKSTART = 1;), as the default behavior is to run on the internal 64 MHz RC oscillator.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want to synchronize based on an external signal, I&amp;#39;d recommend that you look into the GPIOTE IN functionality, and use PPI to either count or provide an event on either rising or falling edge.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Method of high precision timer count</title><link>https://devzone.nordicsemi.com/thread/190396?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 00:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f6f4e8da-41e0-41da-9204-a3cc19b66f9e</guid><dc:creator>yokokawa</dc:creator><description>&lt;p&gt;Other than the above, is there any way to create a timer that counts correctly?&lt;br /&gt;This timer needs to be synchronized with another device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>