cancel
Showing results for 
Search instead for 
Did you mean: 

1-Wire

explorinova
Associate
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

?

5 REPLIES 5
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 Venmo
Up vote any posts that you find helpful, it shows what's working..
simonlee0311
Associate II
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
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
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
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