---------- > From: Osama ALASSIRY > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: TMR0 interrupt (PIC16c84 and PWM) > Date: Saturday, 17 May 1997 17:46 > > attached the code, I hope somebody can see what's wrong!! > Just for a start, DON'T re-enable GIE inside the ISR. The RETFIE instruction does this automagically, and, if you have had an int whilst processing the isr, you'll blow your stack really quickly this way. This is the sort of thing a simulator will probably never find, BTW, as its very time-sensitive. MikeS