1-wire client
Codeswinger
Posts: 5
Attention solderers,
Forgive me but I am quite new to this little piece of art (the prop) but as my home is a 1-wire tangle of sensors and switches with a PC master controlling it all, I thought props in different configurations could make some of my unfulfilled whishes come through as eg a 1-wire power meter slave. To the question; Is there any 1-wire generic tweakable slave s/w developed for the propeller? I know there are some master ditto, but I am looking for code making the prop a 1-wire slave. Anyone seen any?
Mille graize!
Forgive me but I am quite new to this little piece of art (the prop) but as my home is a 1-wire tangle of sensors and switches with a PC master controlling it all, I thought props in different configurations could make some of my unfulfilled whishes come through as eg a 1-wire power meter slave. To the question; Is there any 1-wire generic tweakable slave s/w developed for the propeller? I know there are some master ditto, but I am looking for code making the prop a 1-wire slave. Anyone seen any?
Mille graize!
Comments
1) Basic IC2 Driver http://obex.parallax.com/objects/672/
2) 1-wire Routines in Spin http://obex.parallax.com/objects/342/
It is in fact a master object but has code elements that may be useful. I remember being told that 1-Wire devices restart an internal timer on detecting the line being pulled low. When returning a bit the device is expected to place the value on the line within 15us of the falling edge of the 1W buss.
Now you can determine what the timing means, based on the state of the driver. The OW slave code I posted above shows how to write bits back to the OW buss.