PDA

View Full Version : Timer0 Instant Interrupts Question



wmarchewka
- 14th December 2009, 01:20
Hi all. I am using DT's Instant Interrupts (Thank you Darrell!) and had a question regarding Timer0.

I am using a 18F4680, and have several interrupt sources, INT1, INT2, TMR0 and RX set to LOW priority and INT0 set to HIGH. My question is this: If i am in the INT0 routine and TIMER0 interrupts what happens? Does the TIMER0 interrupt stay flagged so that eventually it will get serviced? Or will i never get to jump to the TIMER0 routine to reset TMR0H and TMR0L?

My INT0 is set at HIGH, it is connected to a MCP2515 CAN controller (which is proving to be way more work than i hoped.)

Any help would be appreciated.

Darrel Taylor
- 14th December 2009, 05:29
... My question is this: If i am in the INT0 routine and TIMER0 interrupts what happens? Does the TIMER0 interrupt stay flagged so that eventually it will get serviced? ...
Exactly! It will remain flagged, and cause another interrupt as soon as it exits the current one.

So it will be serviced ... Next.


My INT0 is set at HIGH, it is connected to a MCP2515 CAN controller (which is proving to be way more work than i hoped.)
I can only imagine the nightmares. :eek:
<br>