[SOLVED] LPC2138 rtc battery backup does not work correctly

Status
Not open for further replies.

mi14chal

Newbie level 5
Joined
Oct 30, 2010
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,354
I have a problem with an internal RTC in LPC2138 b/c battery backup does not work, when I unplug power supply and then plug it I get a random time it seems that battery backup does not work correctly but why? Here is a schematic of connection page 1: https://wydawnictwo.btc.pl/pdf/zl7arm.pdf and this code I'm using to configure RTC:
Code:
CCR = (1 << 0) | (1 << 4); // Clock enable and choose the external oscillator
 

I found out why it won't work. This module which I bought has connection between Vbat and Vdd... so a battery is not enough to power uC. I chose external RTC and now it works perfectly.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…