Shop OBEX P1 Docs P2 Docs Learn Events
help with BS2 and DS1820 ( I2C ) 1 wire device — Parallax Forums

help with BS2 and DS1820 ( I2C ) 1 wire device

JacekJacek Posts: 2
edited 2005-09-29 21:46 in BASIC Stamp
Hi,
It is easy to work with BS2P and up and 1 wire because it has I2C commands, but how about BS2?
I understand·BS2 won't have I2C commands but do you know any routines where I can initialize communication between 1 wire and BS2?

Thanks,
Jacek
·

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-09-29 19:43
    Hello,

    ·· There are examples for this, such as in our documentation for the 24LC128, which is I2C, yet we have working BS2 code for it.· A link is provided below.· I would be willing to bet Jon Williams knows of a few more that I can't think of right now.

    http://www.parallax.com/detail.asp?product_id=602-00013


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-09-29 20:09
    With a BS2 you can synthesize I2C (2-wire) communications, but 1-wire is out of the question without some sort of "helper" chip. Maxim/Dallas has a serial-to-1-wire device, but they don't make it in DIP form so it's not easy to experiment with.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Jon Williams
    Applications Engineer, Parallax
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-09-29 21:46
    Yes,

    ·· For clarification I was pointing out that while the BS2 doesn't have the I2C commands, it can be done.· I did miss the very end of the post about the how to with 1-wire.· Thanks Jon.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
Sign In or Register to comment.