Hans J. Ziegler wrote: > > How do you know the interrupt never occurs? > > 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. Hans: I would have done things a little differently, but your code looks fine. Try single-stepping through the program and watch what TMR2 does. Does it stop incrementing when it reaches 10H, or does it continue to increment past that value? -Andy Andrew Warren - fastfwd@ix.netcom.com Fast Forward Engineering, Vista, California http://www.geocities.com/SiliconValley/2499