Shop OBEX P1 Docs P2 Docs Learn Events
Interfacing BS2 with DS2480B — Parallax Forums

Interfacing BS2 with DS2480B

EMPTY_CEMPTY_C Posts: 29
edited 2013-09-17 01:20 in BASIC Stamp
I am wanting to do some 1-wire communication with the BS2 and was wondering if there were any examples/code out there where the DS2480B has already implemented with the BS2... I did a search but there doesn't seem to be a lot of information.

Thanks,

MT

Comments

  • FranklinFranklin Posts: 4,747
    edited 2013-09-04 18:12
    I believe the BS2P modules will do Dallas onewire.
  • Mike GreenMike Green Posts: 23,101
    edited 2013-09-04 19:01
    The BS2, BS2e, and BS2sx cannot do 1-Wire, but all of the BS2p/pe/px series have built-in statements for 1-Wire devices.
  • EMPTY_CEMPTY_C Posts: 29
    edited 2013-09-05 17:13
    I understand that the BS2 doesn't natively perform 1-wire communication. But the D2480B chip is an interface; a serial to 1-wire line driver... I was hoping someone had some example code on how to use it.

    http://www.maximintegrated.com/datasheet/index.mvp/id/2923

    I did a lot of searching but can't seem to find any examples.

    MT
  • Mike GreenMike Green Posts: 23,101
    edited 2013-09-05 19:18
    The DS2480B is a nice chip, but it's too fast for the BS2. The slowest speed of the DS2480B is 9600 Baud and the BS2 can transmit at 9600 Baud, but it's a bit flaky receiving at 9600 Baud. Essentially, the BS2 is too slow for use with the DS2480B. That's why you won't find any examples.
  • Buck RogersBuck Rogers Posts: 2,178
    edited 2013-09-07 22:33
    Mike Green wrote: »
    The DS2480B is a nice chip, but it's too fast for the BS2. The slowest speed of the DS2480B is 9600 Baud and the BS2 can transmit at 9600 Baud, but it's a bit flaky receiving at 9600 Baud. Essentially, the BS2 is too slow for use with the DS2480B. That's why you won't find any examples.

    Hello!
    As usual Mike you are spot on. Correct as it happens. That part does its work only at that speed. It prefers to work with everything else but. In fact the language being interpreted tends to move slowly as the hosted processor behind the Stamp is busy reading your code and translating it into machine code which then gets ran. It might work with the Prop, but then there's an even bigger problem; writing code for that fellow to do your job.

    Now the ones that Mike said that also do One-Wire also do I2C, and you're better off trying to communicate with the DS2482 family members that way. However the emphasis is on that part there. Should you wish to seriously consider the One-Wire family of parts then I suggest going straight to them, that is the family members, and not using the DS2480B since the BS2 family does what you need to do directly. (Not using the DS2480B that is.)
  • GadgetmanGadgetman Posts: 2,436
    edited 2013-09-17 01:20
    Definitely go for the BS2p? series.

    The 1-Wire commands built into thse are very easy to handle.
    The DS2480 chips are ... quirky to handle properly, even on computers that can keep up...
Sign In or Register to comment.