<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to detect if VBAT supply is present for RTC to work? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372076#M19373</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply. I tried reading all the register one at a time. In that process I tried reading the above 2 registers which you mentioned. But when Vbat is not powered, The program hangs at the reading statement. If VBAT is powered then I am able to read all the registers. But this won't solve my issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Sep 2014 07:32:46 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2014-09-09T07:32:46Z</dc:date>
    <item>
      <title>How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372068#M19365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am using K60 custom made board with cw10.6. In my application I have to time stamp the data. for that I am using RTC. If VBAT pin is given a supply of 3.6V through a coin cell and then the program is dumped, my code is works fine . Suppose my battery is dead, my programs hangs and keeps restarting. Is there any way to find out if VBAT supply is present?&lt;/P&gt;&lt;P&gt;During Initialization I want to check if VBAT supply is present only then I will initiate the RTC else I will use some other clk source i.e from different uc. I also wanted to know what will happen if&amp;nbsp; VBAT pin is left open? Will my entire program hang or will the rest of the program work excluding RTC?&amp;nbsp; I will be using PE component for RTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 06:41:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372068#M19365</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-21T06:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372069#M19366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Amit&lt;/P&gt;&lt;P&gt;Do you use external 32.768KHz for RTC module? If yes, you can check 32.768KHz has been setup? If setup is OK, battery is no problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 06:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372069#M19366</guid>
      <dc:creator>Paul_Tian</dc:creator>
      <dc:date>2014-08-21T06:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372070#M19367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Zhe&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply. I am using&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; external 32.768KHz for RTC module&lt;/SPAN&gt;. My program was working fine until I took out the coin cell, i did POR but still the issue was there. even after inserting it back and doing POR the issue still persist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Aug 2014 07:38:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372070#M19367</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-21T07:38:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372071#M19368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What you've got DIRECTLY to work with is TIF (Time Invalid Flag) in RTC_SR as set by VBAT_POR, and procedures must ensue to restart the RTC when this gets set (including long oscillator startup, if used).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also be aware of dV/dT limitations in the chip relative to instantaneous battery-connect, especially in early silicon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Aug 2014 13:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372071#M19368</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-08-25T13:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372072#M19369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Earl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried reading all the registers. If the VBAT is connected to 3.3 v source, it gives the o/p. In case if it is floating then my program enters in hard fault. I am using the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;/*lint -save -e970 Disable MISRA rule (6.3) checking. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;int&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;main&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #7f0055;"&gt;&lt;STRONG&gt;void&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;/*lint -restore Enable MISRA rule (6.3) checking. */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;/* Write your local variable definition here */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*** Processor Expert internal &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; text-decoration: underline;"&gt;initialization&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;. DON'T REMOVE THIS CODE!!! ***/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;PE_low_level_init();&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="color: #3f7f5f;"&gt;/*** End of Processor Expert internal &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; text-decoration: underline;"&gt;initialization&lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f;"&gt;. ***/&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;printf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff;"&gt;"testing starts\n"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;BR /&gt; &lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;/* Write your code here */&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;for(;;)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;SPAN style="color: #642880;"&gt;&lt;STRONG&gt;printf&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #2a00ff;"&gt;"%0X,%0X,%0X,%0X,%0X,%0X,%0X,%0X,%0X,%0X\n"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;,RTC_TSR, RTC_TPR, RTC_TAR, RTC_TCR,RTC_CR, RTC_SR, RTC_LR,RTC_IER, RTC_WAR,RTC_RAR);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt; WAIT1_Waitms(2000);&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;the same code works if the VBAT is connected 3.3V.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;Kind Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="western"&gt;&lt;SPAN style="color: #000000; font-size: 10pt; font-family: 'Courier New', monospace;"&gt;Amit Kumar&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 10:02:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372072#M19369</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-27T10:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372073#M19370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not surprised that the RTC subsystem must be powered-up to access the registers.&amp;nbsp; The 'normal connection' is a BAT54C to VDD and coin-cell, thence 100ohms surge-limiter to the VBAT pin.&amp;nbsp; If, when you power it up 'so connected' but if no/invalid coin-cell voltage came 'previously' you should get the VBAT_POR (Power On Reset) indication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45563iDBF061B09D630FC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Aug 2014 13:27:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372073#M19370</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2014-08-27T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372074#M19371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Earl&lt;/P&gt;&lt;P&gt;Thanks for the schematic. I went through the schematic of the TWR board which had this type of setup. I wanted complete isolated setup for the RTC.&lt;/P&gt;&lt;P&gt;In the reference manual I found hat some access control register is there which can be read. I wanted to know where is that?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/14258i9E0B03ACF47D1B40/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 04:18:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372074#M19371</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-08-28T04:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372075#M19372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just in case you did not find the answer to your last question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Access control registers&lt;/STRONG&gt;&lt;/EM&gt; refers to &lt;STRONG&gt;RTC_RAR&lt;/STRONG&gt; and &lt;STRONG&gt;RTC_WAR&lt;/STRONG&gt; registers. As you can read in the manual, these registers are not powered by VBAT:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="RTC_Access.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/45762iD19B14D509017E6F/image-size/large?v=v2&amp;amp;px=999" role="button" title="RTC_Access.png" alt="RTC_Access.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 02:56:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372075#M19372</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2014-09-09T02:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect if VBAT supply is present for RTC to work?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372076#M19373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable reply. I tried reading all the register one at a time. In that process I tried reading the above 2 registers which you mentioned. But when Vbat is not powered, The program hangs at the reading statement. If VBAT is powered then I am able to read all the registers. But this won't solve my issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Amit Kumar &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Sep 2014 07:32:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-to-detect-if-VBAT-supply-is-present-for-RTC-to-work/m-p/372076#M19373</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-09-09T07:32:46Z</dc:date>
    </item>
  </channel>
</rss>

