SACC

/ / navigation


Introduction
I2C
Seven-Segment

/ / Introduction



The DS1307 is a real time clock chip. This means that you just have to attach a quartz watch crystal to it, and it'll keep time for you. RTC chips are divided into two categories; those that keep time by counting seconds (usually as a 32 bit number) since some specific start point, and those that count seconds, minutes, hours, days, months, and years. The DS1307 is of the latter type. This means that it stores the time as seconds : minutes : hours (12 or 24 hour) : day of the week : day of the month : month : year. It also knows how many days are in each month, and even knows about leap years out to 2100.

The Sparkfun board that has a surface mount DS1307 on top, and a battery clip underneath.


Sources:KENNETH FINNEGAN
An I2C Bus Example Using the DS1307 Real-Time Clock from http://www.glacialwanderer.com/hobbyrobotics/?p=12