Shop OBEX P1 Docs P2 Docs Learn Events
DS1307 and the NX-1000 24/40 — Parallax Forums

DS1307 and the NX-1000 24/40

Brian MillerBrian Miller Posts: 25
edited 2004-09-01 21:01 in BASIC Stamp
Well, I was going though the stamps works manual and found that the manual refers to a DS1302 and not the DS1307. I think I know the answers to these questions, but I just want to make sure.

Am I correct that the DS1302 is not an I2C device and the DS1307 is a I2C device. If yes I assume that the code in Experiment #30 is not going to work.

If those to are yes, does anyone have sample code for the DS1307?

Oh, one more thing is the crystal and battery installed on the NX-1000 24/40 already hooked up to the DS1307?

Thanks for you help.

Comments

  • NewzedNewzed Posts: 2,503
    edited 2004-09-01 16:40
    The DS1302 is not an I2C device.

    The DS1307 is an I2C device.

    I have sample codes for the DS1307 using a BS2P - standard I2C protocol
    and for the BS2/BS2E which is a modified I2C program.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    TWS/RWS RF Modules

    http://hometown.aol.com/newzed/index.html
    ·
  • Brian MillerBrian Miller Posts: 25
    edited 2004-09-01 16:48
    Do you have the sample code on your web site?

    Does parallax have any project samples for I2C devices?
  • NewzedNewzed Posts: 2,503
    edited 2004-09-01 17:13
    There is no code on the website - codes are supplied to users.

    Which code do you want - I can probably post it here.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    TWS/RWS RF Modules

    http://hometown.aol.com/newzed/index.html
    ·
  • Brian MillerBrian Miller Posts: 25
    edited 2004-09-01 17:14
    Oh, sorry, looking for the code for a DS1307
  • NewzedNewzed Posts: 2,503
    edited 2004-09-01 17:16
    Brian, I have the DS1307 codes.· Do you want the standrad I2C program or do you want the modified version for a BS2?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    TWS/RWS RF Modules

    http://hometown.aol.com/newzed/index.html
    ·
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-01 17:17
    Yes, we have a lot of examples.· I'm assuming by your thread title that you have an NX-1000-24/40 and there is an example for the DS1307 for it.·

    http://www.parallax.com/detail.asp?product_id=28137
    Brian Miller said...
    Do you have the sample code on your web site?

    Does parallax have any project samples for I2C devices?
    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
  • Brian MillerBrian Miller Posts: 25
    edited 2004-09-01 17:23
    Thanks Jon


    Newzed,

    I just need the I2C stuff, I have the BSp

    Thanks everyone for the help.
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2004-09-01 21:01
    We have lots of I2C demos on our web site. Checkout the BS2p demo board, the BS2p24/40 demo board, the BS2p Plus Pack -- anything that is targeted at the BS2p/pe has I2C examples. The nice thing about I2C is that it's fairly consistent, so once you've see one demo, you can roll-you-own with the tech docs for the part you want to work with.

    Hint: Download the tech docs for any part you want to work with.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
    Dallas Office
Sign In or Register to comment.