Shop OBEX P1 Docs P2 Docs Learn Events
I2C slave Stamp — Parallax Forums

I2C slave Stamp

ArchiverArchiver Posts: 46,084
edited 2001-05-15 04:20 in General Discussion
Greetings All,
I was wondering if anyone had any ideas (links, code, etc...) for
running a BS2 as a _slave_ on the I2C bus? I've seen plenty of
examples for master applications, but none for slave. I've searched
this message board, no help - I've searched the internet, no help.
(Interesting side note, the word "slave" in your search terms turns
up more fetish sites than you can shake a stick at.)
Thanks in advance,
Thomas

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-05-15 04:20
    Thomas,

    According to the Basic STAMP manual (page 137, the page for the
    command I2CIN) the BS2 cannot operate as a slave. The I2C definition
    of a master is the device which generates the clock, and initiates
    data transfer. The definition of a slave is the device which is
    addressed by the master. The BS2 does not have a device type or a
    unique address for the I2C bus, and thus cannot operate as a slave. I
    have a small I2C tutorial at:
    http://www.high-techgarage.com/tutorial/i2c.php which goes over some
    of the basics of I2C protocol. There is also a link on that page to a
    copy of the I2C bus specification ver 2.1 which goes into lengthy
    detail about device types and protocols.

    Good luck with your I2C project!

    --Jeff Wallace
    --Add a RTC, 256k EEPROM and an I2C buss to your BS2
    --http://www.high-techgarage.com/products/timekeeper.php

    --- In basicstamps@y..., thomas_seeker@y... wrote:
    > Greetings All,
    > I was wondering if anyone had any ideas (links, code, etc...) for
    > running a BS2 as a _slave_ on the I2C bus? I've seen plenty of
    > examples for master applications, but none for slave. I've searched
    > this message board, no help - I've searched the internet, no help.
    > (Interesting side note, the word "slave" in your search terms turns
    > up more fetish sites than you can shake a stick at.)
    > Thanks in advance,
    > Thomas
Sign In or Register to comment.