ahhhh...I thought thats what was going on. Sorry for missing the answer in yesterdays responses..... Now I just need to figure out why my 1 second timer is off. I have a cycle timer that everytime the ISR is entered, it decrements the counter till it rolls over and the main code in the ISR is run. Calculations show it ought to be 64, yet I need a 74 in there to even get close and even at that....im off by seconds every 5 minutes >From: Jinx >Reply-To: pic microcontroller discussion list >To: PICLIST@MITVMA.MIT.EDU >Subject: Re: PIC]:during the ISR, what is TMR0 doing? >Date: Wed, 6 Nov 2002 10:40:21 +1300 > > > What is happening to TMR0 during the execution of the ISR? Once > > it rolls over, does it continue to cycle automagically or does it get > > held until you return from the interupt? In other words, does the > > amount of code that is executed inside the ISR affect the overall > > interupt timing > >As noted yesterday to another question, TMR0 does not stop. It >jus' keeps rollin' along, except when the system clock is stopped >or if TMR0 is assigned as a T0CKI counter. Time spent in the >ISR or any routine is also elapsing in any active timers > > > I also never heard an answer on...can I enable both TMR0 and > > PORTB0 interupts at the same time? > >Of course. Once in the ISR you'll have to poll IRQ flags to find out >what caused the interrupt. Be aware of any interrupt sources that >may go live during the ISR - you should check for pending IRQs >before you leave the ISR. Even if GIE is off, IRQ flags still get set >(which is how you can poll for events without causing an interrupt) > >-- >http://www.piclist.com hint: The PICList is archived three different >ways. See http://www.piclist.com/#archives for details. _________________________________________________________________ Get a speedy connection with MSN Broadband. Join now! http://resourcecenter.msn.com/access/plans/freeactivation.asp -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.