Shop OBEX P1 Docs P2 Docs Learn Events
OT:I2C chips — Parallax Forums

OT:I2C chips

ArchiverArchiver Posts: 46,084
edited 2004-04-14 02:17 in General Discussion
Do the SDA and SCL pins on I2C chipc always get pulled high?

Thanks

Sid


[noparse][[/noparse]Non-text portions of this message have been removed]

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2004-04-14 01:37
    Yes, that is part of the I2C specification. Devices on the I2C bus are
    only allowed to pull the lines low (high is created by the pull-ups).
    This way if two devices talk at the same time there will not be short,
    just garbled data.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=yWeEUQtq49wlmqBfflcrZbzyaX3Npi9QUW_U_Ch-1R_CZB2OLhtqRSUZeo0spHBjVuFCWbuT3Q]Newzed@a...[/url
    Sent: Tuesday, April 13, 2004 6:22 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] OT:I2C chips


    Do the SDA and SCL pins on I2C chipc always get pulled high?

    Thanks

    Sid
  • ArchiverArchiver Posts: 46,084
    edited 2004-04-14 02:17
    >Do the SDA and SCL pins on I2C chipc always get pulled high?
    >
    >Thanks
    >
    >Sid

    Sid,

    The sda line definitely needs to have a pullup so that each side,
    master and slave, can pull it low.

    In a Stamp based system using I2C, the Stamp will always be the buss
    master and it will supply the clock signal. So if you are
    bit-banking I2C, you can have the Stamp use PULSEOUT or SHIFT
    commands to generate the clock, and you don't have to turn it into an
    input, nor do you have to supply a pullup resistor on SCL. It is
    still best to supply a pullup, because the Stamp pins are inputs by
    default at reset.

    If you use the I2CIN and I2COUT commands on the BS2p and BS2pe, you
    have to supply pullup resistors for both sda and scl, because the
    Stamp asserts only the low level and expects the resistor to be there
    for the high on both of the pins.

    -- Tracy
Sign In or Register to comment.