Shop OBEX P1 Docs P2 Docs Learn Events
using 1-wire protocol to communicate between 2 micros — Parallax Forums

using 1-wire protocol to communicate between 2 micros

AshfaqAshfaq Posts: 2
edited 2005-05-19 21:23 in BASIC Stamp
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

Comments

  • allanlane5allanlane5 Posts: 3,815
    edited 2005-05-19 15:05
    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.
  • GadgetmanGadgetman Posts: 2,436
    edited 2005-05-19 17:36
    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 smile.gif
    (No, you can't borrow my copy. )
  • Jon WilliamsJon Williams Posts: 6,491
    edited 2005-05-19 21:23
    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
Sign In or Register to comment.