Marcel van Lieshout wrote: > I have a routine as part of my main loop which does some math on 32bit > integers. The integervalues are stored into the variables by the > interrupt-routine. It can happen, of course, that my main routine is > fetching the values while the interruptroutine is storing new values > into the variables. This overlap would be at least 8 cycles (fetch > four bytes/store four bytes). Is it possible to hold off interrupt > processing for, let's say, a dozen cycles? Just shut off interrupts around the foreground code that reads the 32 bit value. By the way, you only need 7 of the 8 cycles to be executed with interrupts off. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.