Ian Hynes wrote: > > movf FSR_,0 > movwf FSR > 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. > movwf PCLATH > movf STATUS_,0 ;Return from interrupt > movwf STATUS > swapf w_ ;Flip & load the w register > swapf w_,w ;without affecting the STATUS reg. > retfie Quentin -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu