<?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>nRF52810 TIMER counts very slow</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36361/nrf52810-timer-counts-very-slow</link><description>Hi, I have problem with timer in nrf52810. My TIMER2 counts very slow. I declared it as NRF_DRV_TIMER_INSTANCE(2); and config struct is: 
 .frequency = NRF_TIMER_FREQ_16MHz, .mode = NRF_TIMER_MODE_TIMER, .bit_width = NRF_TIMER_BIT_WIDTH_32, .interrupt_priority</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Jul 2018 17:50:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36361/nrf52810-timer-counts-very-slow" /><item><title>RE: nRF52810 TIMER counts very slow</title><link>https://devzone.nordicsemi.com/thread/140279?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 17:50:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:925c81fa-8029-4a08-850b-6a7d507dba15</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;High frequency allows&amp;nbsp;high &amp;quot;resolution&amp;quot;. You can also use the timer with &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/ppi.html?cp=2_1_0_21#concept_sxf_21l_1s"&gt;PPI&lt;/a&gt; and &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/gpiote.html?cp=2_1_0_20#concept_knz_kww_lr"&gt;GPIOTE&lt;/a&gt; to toggle a GPIO at up to 8 MHz if you want.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TIMER counts very slow</title><link>https://devzone.nordicsemi.com/thread/140181?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 09:25:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a3aa7c7-d718-4a5d-9c52-d2d0bb260bda</guid><dc:creator>iTXS</dc:creator><description>&lt;p&gt;But why TIMER allow these high frequencies?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF52810 TIMER counts very slow</title><link>https://devzone.nordicsemi.com/thread/140078?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 14:05:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10305c0d-d739-4e52-9fb4-cbfcc4884b94</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Although the blinking frequency should only be 8 kHz you are actually trying to process an interrupt 8 &lt;em&gt;million(!)&lt;/em&gt;&amp;nbsp;times per second. The CPU is simply not that fast. If you are using a Softdevice it will also have priority over your interrupt,&amp;nbsp;&lt;a title="Interrupt priority levels" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.sds/dita/softdevices/s130/processor_avail_interrupt_latency/exception_mgmt_sd.html?cp=2_3_1_0_15_1"&gt;Interrupt priority levels&lt;/a&gt;. Try to slow down the interrupt frequency and see if that helps.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>