OneWire Object
william chan
Posts: 1,326
Hi anybody,
Why is the ReadRom command (should be $33 hex) missing from the list of constants?
This should be the most basic command after reset.
Thanks.
CON
setupCmd = 1 << 16
resetCmd = 2 << 16
writeCmd = 3 << 16
readCmd = 4 << 16
searchCmd = 5 << 16
crc8Cmd = 6 << 16
SEARCH_ROM = $F0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Why is the ReadRom command (should be $33 hex) missing from the list of constants?
This should be the most basic command after reset.
Thanks.
CON
setupCmd = 1 << 16
resetCmd = 2 << 16
writeCmd = 3 << 16
readCmd = 4 << 16
searchCmd = 5 << 16
crc8Cmd = 6 << 16
SEARCH_ROM = $F0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Comments
When I try to run it on 10Mhz clock, it hangs.
SX can do 1Wire with only 4Mhz.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my
Post Edited (william chan) : 9/1/2008 9:28:56 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Paul Baker
Propeller Applications Engineer
Parallax, Inc.