DS1338 RTC library RTC + 55 bytes nvram
You are viewing an older revision! See the latest version
Homepage
This library let you access a DS1338, which includes a RTC and some nvram.
Most of the mbed chip already have a good rtc, but they can't be powered by a separate backup battery.
With a DS1338, plus a small lithium 3V battery, you will keep trace of time.
You will also have 55 bytes (DS1338 says 56 bytes, but I use one of them for the library) of NVRAM backed up by the battery, to store fast changing data (which would tear down an eeprom), and keep it, even in the case of a watchdog reset.
include the mbed library with this snippet
#include "mbed.h"