<?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>Setup Timer 2 interrupt</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22533/setup-timer-2-interrupt</link><description>I&amp;#39;m trying to setup a 20Hz interrupt for Timer 2: 
 #define number_of_ms 50 
 void timer_config(void) {
 NRF_TIMER2-&amp;gt;TASKS_STOP = 1; // Stop timer
 NRF_TIMER2-&amp;gt;MODE = TIMER_MODE_MODE_Timer; // taken from Nordic dev zone
 NRF_TIMER2-&amp;gt;BITMODE = TIMER_BITMODE_BITMODE_16Bit;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 05 Jun 2017 20:07:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22533/setup-timer-2-interrupt" /><item><title>RE: Setup Timer 2 interrupt</title><link>https://devzone.nordicsemi.com/thread/88648?ContentTypeID=1</link><pubDate>Mon, 05 Jun 2017 20:07:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a98f9e2-00fa-4388-b028-acad54c394b6</guid><dc:creator>Dzung</dc:creator><description>&lt;p&gt;@RK: your guess is right. The timer is actually 20Hz, and it&amp;#39;s reading data from sensors taking too much time and cause delay. I made the reading much shorter, and now voila it&amp;#39;s 20Hz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup Timer 2 interrupt</title><link>https://devzone.nordicsemi.com/thread/88647?ContentTypeID=1</link><pubDate>Sun, 04 Jun 2017 23:28:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7c550ca4-e06d-45c2-88e4-f7b03e357c41</guid><dc:creator>Dzung</dc:creator><description>&lt;p&gt;The first column is timestamp: the top box is timestamp from RTC with second resolution, and the bottom box is timestamp of millisecond resolution using millis()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Setup Timer 2 interrupt</title><link>https://devzone.nordicsemi.com/thread/88646?ContentTypeID=1</link><pubDate>Sun, 04 Jun 2017 23:10:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f8c454b4-0bca-466d-a5da-cdae46637174</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;what is the output supposed to represent? You don&amp;#39;t show the function in which you&amp;#39;re writing it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>