PDA

View Full Version : using 1-wire protocol to communicate between 2 micros



Ashfaq
05-19-2005, 09:50 PM
I was wondering if anyone has used the Dallas 1-wire protocol to communicate between 2 micrcontrollers?

I will be grateful for any help.

Thanks

allanlane5
05-19-2005, 10:05 PM
I don't think so. Isn't this a 'master-slave' type of interface? The BS2 likes being a 'master', but is not so fond of being a 'slave'.

More typical micro-controller communication is done using RS-232 SEROUT/SERIN commands. These do support an 'open-collector' 'wired-or' mode so you can have a multi-master/multi-slave configuration.

Gadgetman
05-20-2005, 12:36 AM
Yes, the 1-Wire system is a strict master-slave system, and there's no way a BS2 could handle the timing required to emulate a slave device.

What you need is a book 'Serial Port Complete' by Jan Axelson. It's stuffed full of EVERYTHING you want to know about serial ports and communicating on them, included networks. There are even examples for the Basic Stamp http://forums.parallax.com/images/smilies/smile.gif
(No, you can't borrow my copy. )

Jon Williams
05-20-2005, 04:23 AM
We even have simple examples of master-slave communication with SERIN-SEROUT right in the help file!

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA