> How do you know the interrupt never occurs? > >___Bob > > >Easy, the TMR2IF in PIR1 isn't even set in debug mode (MPLAB). And that is >what my problem is all about. The flag is not set. Maybe MPLAB, being an intermediate release, is giving you an error?? Try using MPSIM with the same code. Tony Regards, Hans J. Ziegler Just when I thought I knew it all, I learned that I didn't.