Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/23/02 02:33
Read: times


 
#27783 - RE: 1wire simulation
Hi Alex,

Do you want to create a 1-Wire device with your mcu ?

The 1-Wire interface can be emulated quite easily. You can do it with or without interrupts.

In the latter case you just use one of the INT pins as your Data pin, to recognize a time slot start (Logic 0), you can then wait for the time needed to sample the data (30 microseconds nominal).

The rest is just shifting bits and keeping your device compatible with most commands...

Although you may find the search command to be a bit tricky, since you need to read two bits and send back one to identify your device on the bus if you plan to make it a multi-drop implementation.

Nevertheless once you have created the function for reading/writing a bit everything else is just protocol.

Of course, it would be best to create bit reading/writing functions in assembly and the protocol in C.


I am interested to know if it works ok for you, because i am planning to do that or design a similar networking protocol in the future.

Have fun.


Panos Kenterlis

List of 10 messages in thread
TopicAuthorDate
1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      
RE: 1wire simulation            01/01/70 00:00      

Back to Subject List