Shop OBEX P1 Docs P2 Docs Learn Events
BS2 and DS1307 (I2C) — Parallax Forums

BS2 and DS1307 (I2C)

CruxCrux Posts: 74
edited 2007-07-08 14:34 in BASIC Stamp
Does anybody have an idea or can write a sample code for me about integrating DS1307 Real-time clock exchanging data w/ a BS2 using I2C??

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-07-06 15:45
    The Stamp Works page has both documentation and source code for using the DS1307 from a BS2. Please see the following link for the PDF file and source code. Take care.

    http://www.parallax.com/detail.asp?product_id=27297

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • CruxCrux Posts: 74
    edited 2007-07-07 05:43
    about the crystal being used in the DS1307,should it really be 32.768 khz?what will happen if I used a 41.515 khz crystal or 38KHz crystal?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-07-07 14:54
    Running on a different frequency (a crystal/time-base other than the 32768) will result in inaccurate operation.
  • CruxCrux Posts: 74
    edited 2007-07-08 05:52
    I didnt find any 32.768khz quartz crystal, the only available i had was 38khz,will it work,I doesnt really need to be accurate this time,all i need is to make the circuit running and if the appropriate part is available then there i will modify it..any advice?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2007-07-08 14:34
    It'll run fast, won't hurt anything to try, I guess.· If incrementing numbers will get you anywhere then give it a shot.

    The 32768 xtal is available from good ol' Parallax -- http://www.parallax.com/detail.asp?product_id=251-03230
Sign In or Register to comment.