back to main page

ds1307

DS1307 is the name of an integrated circuit containing an RTC, a real time clock which can be easily attached to an existing system as it uses I2C. This could be for example used with an embedded device which does not have an RTC on its own, to keep the time when that device gets powered off. (Without, it usually starts back in the 1970 unix time at bootup and stays there until one sets the system time e.g. via ntp)
Of course, for this to work, there is a driver necessary which allows access to the RTC. As the in-kernel driver for the DS1307 did not work out for me for several reasons, I decided to write a small userspace driver, also called ds1307, which I can use to set and get the time from and to the RTC as well as to initialize it.

The recent version 0.1 can be downloaded here:

The program ds1307 is provided under the terms of the GNU General Public License Version 2 or (at your option) any later version.