<?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: RTC doesn't count when power on + LPC1768 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521308#M4123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by e135193 on Thu Apr 09 22:34:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I had the same problem lately. I realised that I did not put 18pF cap between the pins of the 32.768KHz xtal and gnd. When I put that caps, it worked. Try that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:47:55 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:47:55Z</dc:date>
    <item>
      <title>RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521298#M4113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Wed Nov 19 00:03:07 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a really bad problem with 1768 RTC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when power on my board (with my own design), RTC stops counting! but when switch off, it counts!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the mark on top of micro:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC1768FBD100&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;S2Y077&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ZSD1421A&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm using a 32.768KHz quartz crystal and 10pf caps with a clock battery connecting VBAT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;tanx all&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521298#M4113</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521299#M4114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Nov 19 07:58:21 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Check Voltage at VBAT.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This should always be 3.3V nominal.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either from the battery if there is no power, or from Vcc33 when powered.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Check your battery switching/charging circuit. [I am not a hardware engineer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;just a hint.]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521299#M4114</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521300#M4115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Wed Nov 19 09:59:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;There is 3v on VBAT pin when board is power down and it counts correctly!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when turning on, it stops counting!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521300#M4115</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521301#M4116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Nov 19 10:07:29 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Any hint how you init your RTC?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 There are several threads here about an additional 100k resistor...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(See schematic of LPCXpresso1769 board) :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521301#M4116</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521302#M4117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Wed Nov 19 10:14:58 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I said it works when power down!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my program is correct and tested on a training board and also another board of mine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521302#M4117</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521303#M4118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Wed Nov 19 10:24:16 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for asking, won't happen again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521303#M4118</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521304#M4119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Wed Nov 19 10:58:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Mine works with both battery only and power, yours doesn't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So either you have a hardware issue that you say you don't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, with power, your code interferes with the RTC.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basic deductive logic.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So all you need to do is check your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards, MIke&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521304#M4119</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521305#M4120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Wed Nov 19 11:06:55 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: R2D2&lt;/STRONG&gt;&lt;BR /&gt;Sorry for asking, won't happen again.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, i didn't mean that. Just answering ur suggestions.Tanx for ur answers &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: MikeSimmonds&lt;/STRONG&gt;&lt;BR /&gt;Mine works with both battery only and power, yours doesn't.&lt;BR /&gt;So either you have a hardware issue that you say you don't.&lt;BR /&gt;Or, with power, your code interferes with the RTC.&lt;BR /&gt;&lt;BR /&gt;Basic deductive logic.&lt;BR /&gt;&lt;BR /&gt;So all you need to do is check your code.&lt;BR /&gt;&lt;BR /&gt;Regards, MIke&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, i think it'll be a hardware issue becasue i tested my code before and worked right. Also i'll put my codes here to see if any problem. Tanx for answering&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521305#M4120</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521306#M4121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Wed Nov 19 22:53:08 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;here are my codes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;&amp;nbsp; /* Enable CLOCK into RTC */
&amp;nbsp; LPC_SC-&amp;gt;PCONP |= (1 &amp;lt;&amp;lt; 9);

&amp;nbsp; /* If RTC is stopped, clear STOP bit. */
&amp;nbsp; if ( LPC_RTC-&amp;gt;RTC_AUX &amp;amp; (0x1&amp;lt;&amp;lt;4) )
&amp;nbsp; {
LPC_RTC-&amp;gt;RTC_AUX |= (0x1&amp;lt;&amp;lt;4);
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; /*--- Initialize registers ---*/&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; LPC_RTC-&amp;gt;AMR = 0;
&amp;nbsp; LPC_RTC-&amp;gt;CIIR = 0;
&amp;nbsp; LPC_RTC-&amp;gt;CCR = 0;

&amp;nbsp; /*--- Start RTC counters ---*/
&amp;nbsp; LPC_RTC-&amp;gt;CCR |= CCR_CLKEN;
&amp;nbsp; LPC_RTC-&amp;gt;ILR = ILR_RTCCIF;

 while(1){
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; current_time = RTCGetTime();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ClearmyBuffer();
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sprintf(myBuffer,"%d : %d : %d \n",current_time.RTC_Hour,current_time.RTC_Min,current_time.RTC_Sec);
 SendTCP();&amp;nbsp;&amp;nbsp;&amp;nbsp; 
 }

&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;getting current_time from RTC and send it via TCP/IP.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521306#M4121</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521307#M4122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Curious on Thu Nov 20 13:37:31 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Putting a 100k resistor series with crystall doesn't help too. :-(&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other idea?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521307#M4122</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: RTC doesn't count when power on + LPC1768</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521308#M4123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by e135193 on Thu Apr 09 22:34:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I had the same problem lately. I realised that I did not put 18pF cap between the pins of the 32.768KHz xtal and gnd. When I put that caps, it worked. Try that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/RTC-doesn-t-count-when-power-on-LPC1768/m-p/521308#M4123</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:47:55Z</dc:date>
    </item>
  </channel>
</rss>

