> > PIR1 and PIE1 are not in the same bank... > > I will pay more attention to bank switching and status registers > in my code from here on out. Now you know why I keep pointing people at the nifty macro set that Olin has, which does "smart" code for bank switching. It has assembler variables which keep track of the current bank, and only generates code to bank switch if needed, so liberally putting the macro before any operation on a register does not needlessly cause code bloat in the resulting machine code. Admittedly it is not totally foolproof - it is still possible to write code where you can loop into a place which requires a bank switch, without the macro doing a correct conditional insert of code, but there is another macro to do an unconditional insertion. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist