On Wed, 30 Jan 2008, Eduardo Garcia wrote: > Hello friends! > I'm searching for a easy way to implement a kind of scripts handling as did > in PLCs. > What I would like is to provide to customer a way to program my device. I'm > not worry about the human interface now. At the moment, I'm researching for > existing techniques where I can match a sequence of actions (outputs, timers > and so on) for a given input state. > > Can anybody point me a link or book which talk about this subject? > > Sorry my bad english but I hope everybody understood me. > > Thanks in advance! ;-) State machines maybe? "while in state A if event 1 occures goto state B, otherwise if event 2 occures goto state C" There are tools that let you design state machines using simple charts. Some of them (like ZMech at http://www.xcprod.com) will even generate the code for you and allow you to interactively trace and debug it. Regards Sergio Masci -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist