The DS1337.h include file provides both high- and low-level support for the DS1337 real-time clock chip, two alarms and two ports (One as an interrupt and one as SQW or interrupt).
The DS1337 serial real-time clock is a low-power clock/calendar with two programmable time-of-day alarms and a programmable square-wave output. Address and data are transferred serially through an I2C bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information.
The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator.
Insert the following directive in your code to make these new commands available:
#include <ds1337.h></ds1337.h>
The DS1337 Real-Time Clock
The DS1337.h include file provides both high- and low-level support for the DS1337 real-time clock chip, two alarms and two ports (One as an interrupt and one as SQW or interrupt).
The DS1337 serial real-time clock is a low-power clock/calendar with two programmable time-of-day alarms and a programmable square-wave output. Address and data are transferred serially through an I2C bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information.
The date at the end of the month is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator.
Insert the following directive in your code to make these new commands available:
#include <ds1337.h></ds1337.h>
Here follows a list of the commands..
Last edit: Anobium 2015-01-29
The driver code can be found here: download
Documentation can found here: download
Example code for a Serial Terminal can be found here: download
Example code for an LCD can be found here: download
Last edit: Anobium 2015-01-30