<?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 LPCXpresso546xx battery connection in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764842#M30797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having a project with an &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPCXpresso54628&lt;SPAN&gt;&amp;nbsp;rev C board&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;utilizing RTC. Therefore I wanted to use a battery on the board to keep the RTC running when the power is switched off. However, when the coin cell 3.6V battery is connected on the J10 connector pin 11 and 16 (pic below, + on pin 11) it seems like it is not running the RTC and when I power on the board the date/time I have set up previously runs from the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11025i59E811380E63C06C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an additional setting I have to make or is the wiring I have made wrong? It seems straightforward but maybe I am overlooking something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Jun 2018 18:20:11 GMT</pubDate>
    <dc:creator>primate</dc:creator>
    <dc:date>2018-06-10T18:20:11Z</dc:date>
    <item>
      <title>LPCXpresso546xx battery connection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764842#M30797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am having a project with an &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;LPCXpresso54628&lt;SPAN&gt;&amp;nbsp;rev C board&lt;/SPAN&gt;&lt;/SPAN&gt;&amp;nbsp;utilizing RTC. Therefore I wanted to use a battery on the board to keep the RTC running when the power is switched off. However, when the coin cell 3.6V battery is connected on the J10 connector pin 11 and 16 (pic below, + on pin 11) it seems like it is not running the RTC and when I power on the board the date/time I have set up previously runs from the beginning.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/11025i59E811380E63C06C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Is there an additional setting I have to make or is the wiring I have made wrong? It seems straightforward but maybe I am overlooking something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Jun 2018 18:20:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764842#M30797</guid>
      <dc:creator>primate</dc:creator>
      <dc:date>2018-06-10T18:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso546xx battery connection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764843#M30798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Hi primate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;The way that you connect the battery on the board to keep the RTC running is correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;The problem founded (using the RTC SDK example) when you power on the board, a function (RTC_SetDatatime) runs and that's why the Data/time runs from the beginning, so you can check in your code, if something like this is happening, and put some conditional that ask the users if want to start from the beginning or keep the last, almost program a new Data/Time.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;If you are still stuck, please provide some more details about your code.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 17:06:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764843#M30798</guid>
      <dc:creator>miguel_mendoza</dc:creator>
      <dc:date>2018-06-13T17:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso546xx battery connection</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764844#M30799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Miguel,&lt;/P&gt;&lt;P&gt;Actually I found out that the RTC_SetDatatime was not the problem but that I have forgot to remove the part of the code that initializes the RTC every time the board is fully powered up. But when you mentioned initialization it came to me. To be exact (and for future reference) I have removed:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;// Set a start date time and start RT&lt;BR /&gt; date.year = 2012U;&lt;BR /&gt; date.month = 05U;&lt;BR /&gt; date.day = 19U;&lt;BR /&gt; date.hour = 12U;&lt;BR /&gt; date.minute = 25;&lt;BR /&gt; date.second = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RTC_StopTimer(RTC); // RTC time counter has to be stopped before setting the date &amp;amp; time in the TSR register&lt;BR /&gt; RTC_SetDatetime(RTC, &amp;amp;date); // Set RTC time to default&lt;/P&gt;&lt;P&gt;RTC_StartTimer(RTC); // Start the RTC time counter&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; font-size: medium;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:11:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCXpresso546xx-battery-connection/m-p/764844#M30799</guid>
      <dc:creator>primate</dc:creator>
      <dc:date>2018-06-13T19:11:58Z</dc:date>
    </item>
  </channel>
</rss>

