PICtoPIC by 1-wire


Results 1 to 6 of 6

Threaded View

  1. #2
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    Cip,

    PIC to PIC connection using 1-Wire is not that simple.
    when using OWIN / OWOUT both the PICs claim to be a master.

    I have already spent hours to write a 1-Wire slave routine for the PIC, no success so far.

    What you could do is: use SerIn / SerOut

    When Idle your Slave is in a SerIn loop
    As soon as it has been "called" it replies on the same Port using SerOut.

    The Master "calls" the Slave using SerOut and after sending its Bits it listens on the same port for the slaves reply using SerIn.

    Even this will require some lines of code to get the timing right and make it fail safe, assuming the slave has more to do than looping waiting for it's masters call.

    If you can afford to use some more port Bits (up to 3)
    "handshaking" will be easier.

    @all members
    Does anyone have a better solution ?

    rgds.
    Last edited by NavMicroSystems; - 10th March 2004 at 15:58.

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts