PDA

View Full Version : DS1307 question



Migs
08-26-2011, 01:14 PM
Friends:

On the DS1307 Real Time Clock, how do you set/read the front two digits of the year? i.e. the "20" in 2011?

BS2.

Also, which DS1307 replacement do you suggest since there are so many newer ones? One that is in a board already.

Thanks amigos,

Migs

Ron Czapala
08-26-2011, 01:33 PM
Friends:

On the DS1307 Real Time Clock, how do you set/read the front two digits of the year? i.e. the "20" in 2011?

BS2.

Also, which DS1307 replacement do you suggest since there are so many newer ones? One that is in a board already.

Thanks amigos,

Migs

The attached basic stamp code lets you set the DS1307 in either 12 or 24 hour mode.
If you comment out the Define for UseLCD it will ignore the code for the LCD display.

I like the DS3231 chip - it is much more accurate than the DS1307 and the ChronoDot is a nice module:

http://macetech.com/store/index.php?main_page=product_info&cPath=5&products_id=8

Migs
08-26-2011, 06:15 PM
Hi Ron:

Thanks for the very clean and understandable example code!

Migs

Migs
08-26-2011, 06:19 PM
By the way, I received this reply today from Maxim:

Dear Miguel

The DS1307 does not have Century information like some other clocks like the DS1346. You will have to keep track of this external to the device.

Thanks and Regards,

HAS
Maxim Integrated Products: Innovation Delivered
http://www.maxim-ic.com

erco
08-26-2011, 06:40 PM
So you have to "guess" at the century? That's short-term thinking. Everyone's out for a quick buck! :)