Shop OBEX P1 Docs P2 Docs Learn Events
serial communication — Parallax Forums

serial communication

ErikdSErikdS Posts: 37
edited 2005-07-14 12:12 in BASIC Stamp
Hi there,

I've been using peripheral IC with SPI for some time, but now, I'd like to interface a chip using I²C.
Can this be done?
Is there source code for it somewhere?
Or an example on whixch I can build? (I'd like to connect a 16bity AD convertor

Thx,

Erik

Comments

  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-07-14 12:12
    Yes, it can be done.· If you're using a BS2p-family Stamp then you have it easy: lookup the I2COUT and I2CIN commands.· If you're using a BS2, BS2e, or BS2sx then the I2C commands have to be synthesized.· I've attached a demo that shows how.

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