> Sometimes when the master activates the slave, the slave may already be in > that position and the _done line will already show high (finished), never > showing (low)busy. Here is a piece of the code that the Master uses to talk > to slave. Does this piece of code require that it sees the "low" first then > exits when it goes "high"? I haven't looked at your code, but it might be simpler to have a valve open/closed line instead of command busy/done line. That way you not only know when the slave has finished a command, but you also always know what state the valves are in. If the master ever commands a slave to open its valve and that valve is already open, then the slave will do nothing and the master sees the command completing immediately. ******************************************************************** Olin Lathrop, embedded systems consultant in Littleton Massachusetts (978) 742-9014, olin@embedinc.com, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads