Prototype to Production : RTC clock problem
Topic last updated 15 Jun 2012, by .
13 replies
#
21 Sep 2010
Replies
#
22 Sep 2010
#
23 Sep 2010
#
23 Sep 2010
#
23 Sep 2010
#
23 Sep 2010 . Edited: 23 Sep 2010
#
23 Sep 2010
#
23 Sep 2010
#
23 Sep 2010
#
23 Sep 2010
#
03 Oct 2010
#
18 Oct 2010
Please log in to post a reply.





Hi !
I received my own design board based on the LPC1768 and Mbed eagle drawing.
After solder compoments, one by one with long verification process, my own board is alive ! FlashMagic give me the Device serial number and my first "hello wold" program is working. Great !
I try all parts of my hardware with basic program to test input/output, SdCard, serial (thru Ftdi232) all was perfect and finally i write a little program to test the RTC, my program set the RTC and give me the unix time in a do loop.
I could set the RTC clock, but my RTC don't run :-( very bad news for a datalogger !
I try to change the capacitor around my resonator (18pf -> 22pf) -> nothing
I change my resonator -> nothing
And i read again and again the PC1768 datasheet, perhaps i made issues.
I only find 32.768 Khz resonator (i already use it on I2C realtime chip), the datasheet speack only of 32khz ? a first issue ?
On the datasheet i could not understand if the Vbat need to be set to float if no external 3v battery is use or if Vbat pin (19) NEED to be connected to 3.3v ?
The datasheet say :
The VBAT pin supplies power only to the RTC domain. The RTC requires a minimum of
power to operate, which can be supplied by an external battery. The device core power
(VDD(REG)(3V3)) is used to operate the RTC whenever VDD(REG)(3V3) is present. Therefore,
there is no power drain from the RTC battery when VDD(REG)(3V3) is available.
Picture of the RTC circuit from the datasheet :
We could see Vbat and VDD go into the RTC Power Selector, but VDD seem to be internally wire ? i need to connect Vdd to Vbat pin or not ?
If need to connect VDD and 3v from battery to VBAT, i imagine i need to use diodes ?
If you have information about wiring the vbat pin of an LPC1768, your help will be greatly appreciated !
Thank you.
Regards,
Chris.