> I just tried this and it seems as though the method I used is OK. In MPLAB, > I set the zero bit in STATUS and then executed a MOVF STATUS,W. The zero > bit was clear in STATUS after the MOVF but the W register held the > unmodified value of STATUS. Maybe it worked in the simulator, but why deliberately invite problems at the edge of the architecture? I didn't see your code, but you still have to restore STATUS at the end of the interrupt. Using a SWAPF for both the save and restore uses no more cycles and is much surer to work. I've got a tried and tested interrupt service routine template, QQQ_INTR.ASPIC, at http://www.embedinc.com/pic. All the save/restore is done for you. All you have to do it plunk in the guts of your interrupt service code. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads