<?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>Timer confusion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96/timer-confusion</link><description>So the nRF51822 has one 32 bit, two 16 bit timers and two Real Time Counters. 
 
 
 What is the difference in a timer and counter? The timer API seems to hard link RTC1 to the timer API. 
 
 
 Can we choose which timer to use or is it abstracted</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 May 2016 06:32:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96/timer-confusion" /><item><title>RE: Timer confusion</title><link>https://devzone.nordicsemi.com/thread/508?ContentTypeID=1</link><pubDate>Wed, 18 May 2016 06:32:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:839071c9-eeda-4b15-85a2-91d3cb1757bb</guid><dc:creator>sara</dc:creator><description>&lt;p&gt;Hello,
You mentioned that &amp;quot;app_timer.c&amp;quot; uses 32kHz RTC, does it mean I can use this library to using RTC in order to save more power? Or I have to stop using &amp;quot;app_timer.c&amp;quot; library but using only RTC to run the counter mode?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Timer confusion</title><link>https://devzone.nordicsemi.com/thread/507?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2013 10:52:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05eff4c2-bf8f-49f3-b1de-1dd3d7953e5f</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;A timer usually holds different modes. &amp;quot;Counter mode&amp;quot; is one of these modes.
What we do is that we have a Capture/Compare mode, and we emulate a counter mode by making the timer reset itself using &amp;quot;SHORTS&amp;quot; register.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;You can setup any timer for the purpose you&amp;#39;d like. If you need good resolution, use TIMER0/1/2 (16 MHz based with prescaling options).
If you need a low power timer, use the RTC (32 kHz based)&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We also provide a timer library. The &amp;quot;app_timer&amp;quot; library uses the 32 kHz RTC.&lt;/p&gt;
&lt;p&gt;Note: If you are using the S110 stack, please see the softdevice specification to see which peripherals are blocked.&lt;/p&gt;
&lt;p&gt;Best regards
Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>