Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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"