On 11-Jan-02 alf schuster wrote: > Yes Peter, but the state of the bits RP0/RP1 is include into the STATUS > register, which I > save before servicing any interrupt request! Am I right? So I couldn't see > why I > should save these bits seperately! Maybe I'm wrong! Please explain! > Thanks Alf Schuster Alf, You are correct when you say that you save them and there is no need to save them seperately... BUT... Once you have saved them you need to also SET them to a know value since the interrupt could have happened when your code was accessing any of the banks. Unless you set them at the start of the ISR your code will just use which ever bank was being used when the interrupt happened! A simple way to do this is to just use a "clrf STATUS" to set all the bank bits, the fact that C,DC,Z are also cleared is not important as their value is not important and has been saved anyway. Hope this is clearer Peter. -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu