Shop OBEX P1 Docs P2 Docs Learn Events
DS1307 question — Parallax Forums

DS1307 question

MigsMigs Posts: 95
edited 2011-08-26 11:40 in General Discussion
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

Comments

  • Ron CzapalaRon Czapala Posts: 2,418
    edited 2011-08-26 06:33
    Migs wrote: »
    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
  • MigsMigs Posts: 95
    edited 2011-08-26 11:15
    Hi Ron:

    Thanks for the very clean and understandable example code!

    Migs
  • MigsMigs Posts: 95
    edited 2011-08-26 11:19
    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
  • ercoerco Posts: 20,261
    edited 2011-08-26 11:40
    So you have to "guess" at the century? That's short-term thinking. Everyone's out for a quick buck! :)
Sign In or Register to comment.