Does LPC1768 RTC have extra RAM?

18 Jun 2010

Some external RTC devices have a few bytes of extra RAM that can be used as a small non-volatile storage. Does the LPC1768 have such spare RAM storage available?

Doug

18 Jun 2010 . Edited: 18 Jun 2010

Yes Doug, If you would simply read the datasheet you would see that the LPC1768 does have 20 bytes of battery-backed up RAM.

Doug

18 Nov 2010

Is there a demo/sample program on using the extra RAM of the RTC?

18 Nov 2010

Hi Sunish

Hope this post here helps.

Regards
Daniel

18 Nov 2010

Thanks for the tip, Daniel. Will a unix timestamp variable fit in a 32bit variable ?

Sunish

18 Nov 2010 . Edited: 18 Nov 2010

A traditional unix timestamp w/ 1 second resolution will fit in a 32 bit variable, until the year 2038, IIRC.

19 Nov 2010

Thanks, looks like its working, what I wanted was to assign the clock value to battery backed RAM.

 

Sunish

19 Nov 2010

You could also use the traditional time-related rtc registers, IIRC they are battery-backed even if rtc clock is not running (via the 32khz oscilator) while main power is off. If this fits your application, you'll still have the extra registers available for other purposes, if applicable,

20 Nov 2010

I'm already using it and looks like its working.