Hi all, I would like to get some advice from everyone on how best to tackle this basic problem. My assembly codes are segregated into different possible states of the system that i build. I think it can be considered a Moore state machine. Now, of the many states, there is one state that every states goes to when the condition is right. Let say the condition is a Emergency switch. Once inside the state, some algorithm is executed and when the switch is flip back, the control will jump to only a particular state, let's call it A state. So my question is, what is the best way to implement this? Hardware interrupt, Software interrupt or just plain old polling method? Thanks. Rgds, Pang -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body