Shop OBEX P1 Docs P2 Docs Learn Events
Sx i2c — Parallax Forums

Sx i2c

RsadeikaRsadeika Posts: 3,837
edited 2005-12-06 17:35 in General Discussion
Trying to get some clarification about hooking up an SX tech board with an SX52 proto board using I2C. Is it as simple as hooking a wire to, lets say, RA.0 and another wire to RA.1 on to both boards, and I would be ready to have the boards talk to each other, with the proper programs of course. And I noticed, in the docs special notes, that it recomends some pull-ups. If I just use PLP_A, would that suffice. Looking for some comments and direction.

Thanks in advance

Comments

  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-12-06 17:00
    The internal pullups are weak (>10k&#937[noparse];)[/noparse], this is sufficient if you are only connecting two devices over a short distance at lower frequencies (<1 MHz). If any of these are not the case you should use external pullup resistors.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
  • BeanBean Posts: 8,129
    edited 2005-12-06 17:02
    If your using SX/B be aware that the I2C commands are for master only.
    I2C slave code is quite a bit more complecated.
    For general communication I would use serial.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "SX-Video·Module" Now available from Parallax for only $28.95

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

    "SX-Video OSD module" Now available from Parallax for only·$49.95
    http://www.parallax.com/detail.asp?product_id=30015

    Product web site: www.sxvm.com

    Those that would give up freedom for security will have neither.
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-12-06 17:24
    Theres an app note for I2C slave on the SX downloads page. It is written in assembler though.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·1+1=10
  • RsadeikaRsadeika Posts: 3,837
    edited 2005-12-06 17:35
    Thanks Paul and Bean,

    I guess two wires is fine, right? Just to get my toes wet, I want to set up a simple experiment, on one board I will have my IR detector, on the other board I will have an LED on/off circuit. Press the remote and see if the LED lights up on the other board. I am looking at Guenther's book for possibly adding a slave aspect, once I feel comfortable with this.

    Does anybody have a simple schematic for implementing an I2C connector·on an SX52 proto board, something that I could understand. This of course would be for a master/slave approach.

    Thanks
Sign In or Register to comment.