> One method that I have used involves the use of three flag bits. > One flag bit is called main_wants_new, one is called isr_wants_new, > one is called allow_data_in_isr, and the last is called data_ready. That's pretty clever, saving 4 flags in 3 bits ;-) ***************************************************************** Olin Lathrop, embedded systems consultant in Devens Massachusetts (978) 772-3129, olin@cognivis.com, http://www.cognivis.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu