On Mon, 6 Nov 2000, Bob Ammerman wrote: > > > > This works for the case when the interrupt can modify in the middle of an > > access. Similar logic exists for writing to a variable (instead of just > reading > > it in the main task). But I agree with Andy K, I'd be inclined to throw > DI/EI > > around the critical sections. > > > > > > Scott > > Ah, but Scott, the whole point is: sometimes you CANNOT disable interrupts > due to real-time requirements (ie: fast response and/or zero jitter) of > interrupt handling code. Okay. btw, there's an error in my code. It's very subtle... But there's a race condition (that's easily fixed) Scott -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! use mailto:listserv@mitvma.mit.edu?body=SET%20PICList%20DIGEST