> -----Original Message----- > From: Olin Lathrop [SMTP:olin_piclist@COGNIVIS.COM] > Sent: Tuesday, November 07, 2000 3:45 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Multibyte words and Interrupts - A challenge > > > 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 ;-) > > Data compression is marvellous thing :o) Mike -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu