Alexander Colquhoun wrote: >What puzzles me however is that if I initiate an i2c interrupt in the >data decode and storage section,I would expect the bus to 'hang' as >the interrupt should not be serviced since it is NOT enabled. >What happens however is the bus appears to 'hang',but once all the bytes >are stored they are output correctly,it appears that the i2c interrupt is >'stored' and once I enable it in section 2 it is then serviced. > >I do appreciate that flags get set even though interrupts are not >enabled. Alexander: Right... The flags get set even though interrupts are not enabled. When an interrupt DOES eventually get enabled, however, the PIC will immediately service it if its corresponding flag is set. If you don't like this behavior, you should clear the flags just before enabling the interrupts to which they correspond. -Andy -- Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California