This tutorial we will going to wire the DS1307 Module with on Chip I2C. which is output the real time clock signal through standard I2C interface. The DS1307 Serial Real Time Clock is a low power, full BCD (binary-coded decimal) clock/calendar and it has 56 bytes of NV SRAM. Address and data are transferred serially through an I2C, If you want to know more about i2c check this link. “How I2C Serial Bus Works”
The clock and calendar provides seconds, minutes, hours, days, date, month, and year information. The end of the month date is automatically adjusted for months with fewer that 31 days including corrections for leap year.
The clock operates in 24 hours or 12 hours format along with AM and PM indicator. The DS1307 has a builtin power sense circuit that detects power failure and automatically switch to the backup power supply. Timekeeping operation continues while the part operates from the power backup supply.
Wiring the I2C DS1307 Real Time Clock
[crayon-673a269cbe130248900841/]
The Serial Communication View
When you going to place the coin battery it will display the right date & time.
Download The Code Library Here | Zip
Download The DS1307 Datasheet Here | PDF