Hello! Are there any good guides out there that describes when to disable interrupts? I searched the archive and did a fast Google but didn't find anything good. The reason I ask is that last week I ran into a problem that I didn't know excist. Either when I was doing a movf EEDATA,W or a incf EEADR,F my PIC hang. But when I disabled interrupts this problem disapered. I had no idea of this, I only knew that I have to disable interrupts when reading and writing to EEPROM/FLASH. What other registers needs interrupts disabled? By the way, I'm using a 16F877. Greetings, Andreas -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads