<?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>SDK 6.0.0 timer</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12826/sdk-6-0-0-timer</link><description>hi, 
 can i use timer interrupt has more than 1ms period?? 
 #define APP_TIMER_TICKS(MS, PRESCALER) 
((uint32_t)ROUNDED_DIV((MS) * (uint64_t)APP_TIMER_CLOCK_FREQ, ((PRESCALER) + 1) * 1000)) 
 APP_TIMER_TICKS offers just ms units but i need more faster</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Mar 2016 08:22:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12826/sdk-6-0-0-timer" /><item><title>RE: SDK 6.0.0 timer</title><link>https://devzone.nordicsemi.com/thread/48753?ContentTypeID=1</link><pubDate>Wed, 30 Mar 2016 08:22:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:677f56a0-dc9f-4f04-afff-7ed057e0ee68</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;You can use the Timer peripheral (again see the Reference Manual for more info). This runs off the 16MHz clock. Problem with this is that it requires a lot of current compared to the RTC which the app_timer uses. The Timer will use between 250 and 750 uA depending on which source and which frequency is used. Accurate numbers are in the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51822_PS_v3.1.pdf"&gt;Product Specification&lt;/a&gt; part 8.1. The RTC in comparison uses about 1uA when run off the 32kHz RC oscillator or crystal.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 6.0.0 timer</title><link>https://devzone.nordicsemi.com/thread/48752?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 17:32:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b43d4e95-f2dc-4431-b201-4f8a6d11d014</guid><dc:creator>wooyongKim</dc:creator><description>&lt;p&gt;thanks a lot.
is there any way to increasing the timer resolution??
in the module, there is a 16MHz oscillator. actually, i don&amp;#39;t know why the unit clock is based on 32.768kHz not 16MHz.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: SDK 6.0.0 timer</title><link>https://devzone.nordicsemi.com/thread/48751?ContentTypeID=1</link><pubDate>Tue, 29 Mar 2016 15:44:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0b1b8d-0adc-4dc6-bf27-4a72ffd95910</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;&lt;code&gt;APP_TIMER_TICKS(..)&lt;/code&gt; will only convert ms to the number of ticks it takes for the RTC to count to the same number of ms. With prescaler 0 one tick is 30.517us (or 1/32768 second), so this is the maximum resolution. See the &lt;a href="http://infocenter.nordicsemi.com/pdf/nRF51_RM_v3.0.pdf"&gt;Reference Manual&lt;/a&gt; for more info. You can make your own APP_TIMER_TICKS function which takes in us instead of ms:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_TIMER_TICKS_US(US, PRESCALER)\
            ((uint32_t)ROUNDED_DIV((US) * (uint64_t)APP_TIMER_CLOCK_FREQ, ((PRESCALER) + 1) * 1000000))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;ROUNDED_DIV(A, B)&lt;/code&gt; will do the same as: A/B + 1/2. &lt;code&gt;APP_TIMER_CLOCK_FREQ&lt;/code&gt; is 32768.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>