<?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 can I keep RTC running when I replace battery?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10890/how-can-i-keep-rtc-running-when-i-replace-battery</link><description>Hello,
I am using nRF51822 to build a product and employ 3.0V battery as power supply and system works on DCDC mode. I need RTC counter to do real time tracking. My question is: 
 
 When I replace battery, how can I keep RTC running without reset?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 18 Dec 2015 07:52:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10890/how-can-i-keep-rtc-running-when-i-replace-battery" /><item><title>RE: how can I keep RTC running when I replace battery?</title><link>https://devzone.nordicsemi.com/thread/40727?ContentTypeID=1</link><pubDate>Fri, 18 Dec 2015 07:52:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:997eec3c-4fd8-414c-a794-f539cc575c5e</guid><dc:creator>sunnyjet16</dc:creator><description>&lt;p&gt;Thanks, Ole.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I keep RTC running when I replace battery?</title><link>https://devzone.nordicsemi.com/thread/40726?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 10:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f78b023-baf9-43ed-93e5-78e6738ee55e</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;There are two sleep modes on nRF51, System ON and System OFF. In system ON the RTC counter is still working. In system OFF everything is turned off and the only wakeup source is from a gpio pin, so RTC is not working. When waking up from system OFF a system reset will be applied.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I keep RTC running when I replace battery?</title><link>https://devzone.nordicsemi.com/thread/40725?ContentTypeID=1</link><pubDate>Thu, 17 Dec 2015 02:44:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f32e0bc-42d3-42f0-ad74-c43fc5c782af</guid><dc:creator>sunnyjet16</dc:creator><description>&lt;p&gt;Ole, thanks for your answer.
Usually, users will replace battery when it goes to below 2.0V which means if action time of changing battery is 20 seconds, the capacitor will be very big such as 220uF.
On sleep mode, is RTC counter still working?&lt;/p&gt;
&lt;p&gt;Regards
Alex&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how can I keep RTC running when I replace battery?</title><link>https://devzone.nordicsemi.com/thread/40728?ContentTypeID=1</link><pubDate>Wed, 16 Dec 2015 10:33:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14a0a68f-e844-4fb6-8fd7-02ef4b407da0</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Something needs to supply the circuit while the battery is gone, this can be a capacitor. You should go into System ON sleep mode before removing the battery. If you only keep 16K RAM retained the current draw should be 2.6uA. Be aware that if any event or interrupt should happen, the current draw will be higher.&lt;/p&gt;
&lt;p&gt;The equation for how long the chip will last before going into brown-out reset (power fail) if we assume constant current draw is:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;t = C * (V0 - 1.7V) / I
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Where C is the capacitor value, V0 is the start voltage (3.0V in your case) and I is the current draw. If the capacitor is 10uF, current draw 2.6uA and the start voltage 3.0V, the chip will last for 5 seconds before going into reset.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; If the RTC is running, additional current of 0.5 or 0.9 uA (depending on crystal or RC oscillator) needs to be added to the system ON sleep current. So system On sleep current with 16K RAM enabled and RTC running will be 3.1 or 3.5 uA.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>