<?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>How to start and stop a timer in S110?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/3667/how-to-start-and-stop-a-timer-in-s110</link><description>I use NRF51822 and s110. I want to know how to start and stop a timer, to get the time that the timer run.
whitch API should I use int S110?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 01 Sep 2014 05:33:35 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/3667/how-to-start-and-stop-a-timer-in-s110" /><item><title>RE: How to start and stop a timer in S110?</title><link>https://devzone.nordicsemi.com/thread/13305?ContentTypeID=1</link><pubDate>Mon, 01 Sep 2014 05:33:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e532980-bacc-4898-abae-21cd5b796257</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;thank you!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to start and stop a timer in S110?</title><link>https://devzone.nordicsemi.com/thread/13304?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2014 09:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a347473a-8881-4da4-ba2b-de0e276e945e</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;There is macro function for this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define APP_TIMER_TICKS(MS, PRESCALER)\
            ((uint32_t)ROUNDED_DIV((MS) * (uint64_t)APP_TIMER_CLOCK_FREQ, ((PRESCALER) + 1) * 1000))
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;It&amp;#39;ll be 32768 ticks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to start and stop a timer in S110?</title><link>https://devzone.nordicsemi.com/thread/13303?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2014 09:33:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a293424-715f-4a96-8aa5-79a0c7b8d943</guid><dc:creator>Ricky</dc:creator><description>&lt;p&gt;I want to init a timer by using APP_TIMER_INIT(APP_TIMER_PRESCALER, 2, 4, true); but if I set APP_TIMER_PRESCALER to 0, how many ticks equal to 1s ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to start and stop a timer in S110?</title><link>https://devzone.nordicsemi.com/thread/13302?ContentTypeID=1</link><pubDate>Fri, 29 Aug 2014 03:18:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:358e5ac9-964c-4c7a-9923-773218700f56</guid><dc:creator>Nikita</dc:creator><description>&lt;p&gt;You can get current timer value by triggering CAPTURE task for any Capture/Compare register.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_TIMER2-&amp;gt;TASKS_CAPTURE[1] = 1; // trigger TASKS_CAPTURE for Capture/Compare register 1.
time = NRF_TIMER2-&amp;gt;CC[1]; // Get current timer value
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>