Hi
This is in fact a quick follow-up on Hervé's post:
http://www.utasker.com/forum/index.php?topic=738.msg3228#msg3228 (I use external RTC because of higher power consumption of the lpc23xx).
Since I have also been working with the LPC2XXX RTC recently here are my remarks.
1) A decent external RTC like the
DS1307 requires about 500nA battery current. This chip also has 56 bytes of battery backed up RAM in it, which can be useful for saving program states etc. so that they can be recovered after a program cycle. A 48mA lithium battery will hold data and run the clock for > 7 years.
2) The
LPC2378 (for example) with internal RTC and 2k of battery backed up RAM requires about 20uA (typical), which is about 40x more than the external RTC reference but the 2k battery backed up RAM is a lot in comparison and can be accessed at fully speed when used in normal program operation. A rather larger battery is required to hold the data over long periods of time (eg. about 3.5 years with 1000mA lithium).
3) The
LPC2103 (for example) with internal RTC and 12 bytes of battery backed up RAM requires about 8mA (typical), which is still 16x more than the external RTC reference, with less RAM storage space but this is easier to use since it can be accessed at full speed. A 540mA lithium battery will hold data and run the clock for a period of more that 5 years (note that a larger Lithium battery is not much more expensive that a small one but does take up more space).
Personally I find 20uA rather high for this function (eg. LPC2378) but in many cases the larger storage space and saving of external component will still be a good advantage).
I find the 8uA required by the LPC2103 fairly good since it saves an external component without having to use a much more expensive battery, achieving similar back up life (although battery space may be an issue in some designs). The fact that there are some backed up variables that can be accessed at full speed (without sending them back and forth over an I2C bus) makes it easier to use (if the space is adequate).
There are plans for a first uTasker hardware kit based on the LPC2103 - including low power design - making use of its battery backup capability and RTC [> 5 year back-up], a display, external SPI memory, external UART extension and some other things too. 25mW (from 5V supply) at 14MHz is typical operating power consumption when using low power software support - so watch out for the first "
uTasker Professor"...;-)
Regards
Mark