Read the state of TMR2IF. If it's clear, the timer isn't setting it (timer config or other). And if it's set, the problem is with the interrupt system setup. You should even be able to set the bit yourself and get an interrupt. On Tue, Apr 16, 2013 at 10:51 AM, John Coppens wrote: > On Tue, 16 Apr 2013 18:15:35 +1200 > IVP wrote: > > > I could only suggest checking that IE flags are still set during > > PWM and that the port pin you've chosen to monitor IRQ > > activity is set to be an output > > Thanks for the suggestions... > > I've been suffering with this problem all morning. I even imported the > program in MPLAB X, and there it runs completely as foreseen: the > interrupts _are_ generated, the interval is correctly 125 us, the > debug outputs change as planned. > > The port is an output, which I can notice with the oscilloscope. > It is really low continually. > > Cheers, > John > -- > http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .