> > movf PCLATH_ >should be movf PCLATH_,0 >if not, it just movf the file into itself (default is 1). So you are >actually loading PCLATH with the value from FSR (value in w), which >could be the wrong value. >Also, if you use the pic16f87x.inc file, rather use w for 0 and f for 1, >not so confusing. Good catch. I admit I missed this one when I went through it. But I wanted to add to the original poster also that maybe clearing the individual bits for the INTCON flags (i.e., RBIF, INTF, T0IF, etc.) would be clearer and easier to double check than using a "movlw 00011000" or similar. Also, you might be better off making sure that you've got the proper interrupt source (by checking flags when you enter the ISR) before branching off to the code. Even if you've only got one interrupt enabled, it only takes 2 extra instructions to make absolutely sure it's the right one. --Andrew _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu