Skip to main content
explorinova
Associate
April 24, 2012
Question

1-Wire

  • April 24, 2012
  • 5 replies
  • 1490 views
Posted on April 24, 2012 at 20:28

The

1-wire

protocol

uses only

one

port to send

and receive data.

 What is

 the

configuration mode

for the

GPIO_Mode

?

What is the

method to

a

port to

receive and

send data

?

    This topic has been closed for replies.

    5 replies

    Tesla DeLorean
    Guru
    April 24, 2012
    Posted on April 24, 2012 at 22:50

    For a software implementation you'd want to configure the GPIO in Open Drain mode.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    simonlee0311
    Associate II
    April 25, 2012
    Posted on April 25, 2012 at 03:56

    Hi,

    In my experience, I will do like this.

    1. Mater -> Slaver

    > Set GPIO as output to send out the data.

    After send out finished.

    2. Master <- Slaver

    > Set GPIO as input to receive data from slaver.

    repeat from step 1.

    You should define the protocol fist, then you will know how to set GPIO.

    Simon 

    trevor23
    Associate III
    April 25, 2012
    Posted on April 25, 2012 at 10:29

    Needs to be open drain (as Clive said) rather than output (push/pull) as another one wire device(s) may try to transmit at the same time (i.e. a collision). All devices on the bus should be open drain or open collector (sometimes with dynamic pull up).

    emalund
    Associate III
    April 30, 2012
    Posted on April 30, 2012 at 15:03

    Needs to be open drain (as Clive said) rather than output (push/pull) as another one wire device(s) may try to transmit at the same time (i.e. a collision) OR even a popped chip

    Erik
    emalund
    Associate III
    April 30, 2012
    Posted on April 30, 2012 at 15:04

    Needs to be open drain (as Clive said) rather than output (push/pull) as another one wire device(s) may try to transmit at the same time (i.e. a collision) OR even a popped chip

    Erik