One Wire with BS2
bob kruggel
Posts: 50
Has anyone interfaced a BS2 to the Dallas DS2450 (serial to 1-wire converter), or know a source of info about the same. I have the Dallas DS2450 document, but it confuses me.
Bob Kruggel
Bob Kruggel
Comments
I think the two are synonymous.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Bob
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Do you know if the costumer documented his experience for public consumption.\?
Bob
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
So my new question is: is there is a way to get SERIN to respond this soon (100us)·after SEROUT data has been transmitted by the stamp? If I can't check out the command responses from the DS2480, I may just ignore them and see if I can get the 1-wire communications working.
BobK
Its the·bloke in Australia, I've just rejoined the forum after a few years out of it, and stumbled across this thread.
I'm sorry·I cant give you the exact code, as we use the software in a commercial application where we have pleanty of competition, but I can tell you that the ds2480b is·very reliable with bs2sx.
I think you will have trouble·with·the·bs2 comms with DS2480B.
The DS application note for the DS2480B gives some good help, as does the DS1996L app notes.
Be sure to read the information in the DS2480B documentation regarding sending of control codes as data, ie: when you want to send the command code value as part of the data, not as a command code, in that situation you need to send the data byte twice...
Eg:
if databyte·<> CommandCode then sendit
serout pin, baud,[noparse][[/noparse]CommandCode]
sendit:
serout pin, baud,[noparse][[/noparse]databyte]
We went to bs2p, and it is better in our application because it freed up 1 io pin, and uses heaps less code space.
Hope this helps in some way.
Cheers,
Chris
Thanks for the response. I've alredy convinced myself that the BS2 is too slow for the serial communications. Since I have a BS2SX, I'll give it a try. I may just ignore the responses with the BS2 and just see if I can get the 1-wire talking and listening.
BobK
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·Mark Brooks
·HighFlyer
Bob Kruggel