Thank you. Problem solved
Now we get a good PWM response , 15 steps from 0% to 94% duty cycle
GOOD!
----
From: Mike Smith <spam_OUTmikesmith_ozTakeThisOuT
RELAYMAIL.NET>
To: .....PICLISTKILLspam
@spam@MITVMA.MIT.EDU
Date: 18 May 1997 13:51 PM
Subject: Re: TMR0 interrupt (PIC16c84 and PWM)
{Quote hidden}>----------
>> From: Osama ALASSIRY <
osama
KILLspamALASSIRY.COM>
>> To:
.....PICLISTKILLspam
.....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
><EraseMEmikesmith_ozspam_OUT
TakeThisOuTrelaymail.net>
>