1-wire client
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.
wait0 waitpne owmask, owmask ' wait for drop neg timer, cnt ' start timer wait1 waitpeq owmask, owmask ' wait for release add timer, cnt ' timer has pulse time
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.