Shop OBEX P1 Docs P2 Docs Learn Events
Real Time Chips with BS@ — Parallax Forums

Real Time Chips with BS@

ArchiverArchiver Posts: 46,084
edited 2002-03-03 17:11 in General Discussion
Has anyone interfaced a Real Time Clock chip with the BS2 Chip. Need
software help.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-03-02 21:40

    Original Message
    From: Chris Loiacono [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nn8vLpFvfs6H9Yfj6pjIcy7uaS1ZQNfAipsnN1_gizgeyGerl4mbXQCt-OaRrHPQ0ZgUTyx59aBdedNd]chris@m...[/url
    Sent: Saturday, March 02, 2002 4:41 PM
    To: 'basicstamps@yahoogroups.com'
    Subject: RE: [noparse][[/noparse]basicstamps] Real Time Chips with BS@


    Dig a little - there's plenty out there...
    Try Jon Williams' stuff on the parallax site www.paralaxinc.com using the
    DS1302, or perhaps Peter Anderson's www.phanderson.com nice detaile DS1302
    explanations.

    Chris

    >
    Original Message
    > From: deaskew [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=wvj3EZexMaHkhm-hnfFu0pgJ2oyNGarkW3I3cLYHUR6aywLUQBnKxLrZ7HUUEaks7dHu0SrgBvlU9fDv]DAVECUSTOM@A...[/url
    > Sent: Saturday, March 02, 2002 6:45 AM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] Real Time Chips with BS@
    >
    >
    > Has anyone interfaced a Real Time Clock chip with the BS2 Chip. Need
    > software help.
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-03-03 17:11
    Hello. There are many different types of RTCs that can be interfaced
    with the BS2. There are 1-wire, 2-wire (usually referred to as I2C)
    and 3-wire (referred to as SPI or microwire). Parallax has done a
    nice job providing a tutorial for the DS1302 RTC. This is a 3-wire
    device meaning you need 3 Stamp pins to control it. The 3-wires
    consist of a clock, data and chip select. Other 3-wire devices can be
    added to the same clock and data line, although you will need another
    pin to for the new chip select (i.e. two 3-wire devices would require
    four Stamp pins: clock, data, chip select 1, chip select 2). Doing a
    search on Parallax's website should produce the DS1302 tutorial.

    I2C devices have the advantage of needing only two wires, data and
    clock, regardless of the number of devices connected. (I believe
    there is a maximum of 64 or 128 devices that can share the same buss,
    however). Each chip has a unique identifier (usually a 7-bit ID). The
    BS2p has builtin commands for I2C communication (i2cin and i2cout).
    Interfacing 2-wire devices is a breeze. Don't worry if you don't have
    a BS2p, though. It just takes a little more code to do the same
    thing. I've created a tutorial that covers interfacing the DS1307
    real time clock to the BS1. Sample software is included and shows how
    to set and read the time. The complete tutorial can be found at:
    http://www.high-techgarage.com/tutorial/ds1307.php. You can buy a
    tutorial kit with the RTC, crystal and pull-up resistors as well. We
    also offer products which add a RTC and EEPROM to the Stamp. They can
    be found in the "Products" section of our website.

    Good luck with your project!
    --Jeff
    http://www.high-techgarage.com

    Add a RTC and up to 256k EEPROM to your STAMP!
    http://www.high-techgarage.com/products/timekeeper3.php


    --- In basicstamps@y..., "deaskew" <DAVECUSTOM@A...> wrote:
    > Has anyone interfaced a Real Time Clock chip with the BS2 Chip.
    Need
    > software help.
Sign In or Register to comment.