mi14chal
Newbie level 5
- Joined
- Oct 30, 2010
- Messages
- 9
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- 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