Osama, Could you please post the *actual* code? I find that little problems in assembler that screw up the whole program can be stared at for hours by the author without seeing them. As well, have you run your code through the simulator (my first line of defense/verification before I burn a part)? myke >---- >From: Jorge Miguel Cabral >To: PICLIST@MITVMA.MIT.EDU >Date: 15 May 1997 0:48 AM >Subject: Re: TMR0 interrupt (PIC16c84 and PWM) > >> > >> Did you clear the bit RTS (option.5) and set the PSA (option.3) and RTE >> (option.4)? >yes! > >> If soo please email me the relevant part of the code! > >it was something like this (original code not on my computer right now): >| org 0 >| goto start >| org 4 >|isr >| ;SAVE W and STATUS (from a microchip book) >| BCF INTCON,IT0F (or something like that, clear overflow) >| INCF PWMCOUNTER >| ;COMPARE PWMCOUNTER with PWM >| ;if < : bsf PORTB,0 >| ;if > : bcf PORTB,0 >| ;Restore W and STATUS (from a microchip book) >| RETFIE >|start goto start ; infinite loop > > > >I just don't know what could be wrong... > > "My ancestors didn't spend millions of years clawing their way to the top of the food chain, just so I could become a vegetarian"