interupt priority
2013-10-11 by Mehdi Ghassemi
Yahoo Groups archive
Index last updated: 2026-04-28 22:41 UTC
Thread
2013-10-11 by Mehdi Ghassemi
Hi dear if my program is executed TIMER0 service routine and TIMER1 OVF interupt occurs what is happening? thanks for your reply
2013-10-11 by Jim Wagner
Timer1OVF does not execute until TIMER0 isr ends and code execution has returned to non-isr code. Jim Wagner Oregon Research Electronics
----- Original Message ----- From: "Mehdi Ghassemi" <m_gh77@yahoo.com> To: AVR-Chat@yahoogroups.com Sent: Friday, October 11, 2013 7:23:33 AM Subject: [AVR-Chat] interupt priority Hi dear if my program is executed TIMER0 service routine and TIMER1 OVF interupt occurs what is happening? thanks for your reply
2013-10-11 by Mehdi Ghassemi
hi jim thanks for your attention have we a way that the timer1 OVF in this problem is executed because the time execution TIM0 is long (200us)? thanks a lot -------------------------------------------- On Fri, 10/11/13, Jim Wagner <wagnejam99@comcast.net> wrote:
Subject: Re: [AVR-Chat] interupt priority
To: AVR-Chat@yahoogroups.com
Date: Friday, October 11, 2013, 7:47 AM
Timer1OVF
does not execute until TIMER0 isr ends and code execution
has returned to non-isr code.
Jim Wagner
Oregon Research Electronics
From:
"Mehdi Ghassemi" <m_gh77@yahoo.com>
To: AVR-Chat@yahoogroups.com
Sent: Friday, October 11, 2013 7:23:33 AM
Subject: [AVR-Chat] interupt priority
Hi dear
if my program is executed TIMER0 service routine and TIMER1
OVF interupt occurs what is happening?
thanks for your reply2013-10-11 by tom@outsidetrains.com
2013-10-12 by David Kelly
On Oct 11, 2013, at 9:55 AM, Mehdi Ghassemi <m_gh77@yahoo.com> wrote: > have we a way that the timer1 OVF in this problem is executed because the time execution TIM0 is long (200us)? I think it is bad practice to spend a lot of time during an interrupt service. Perhaps time to rethink your coding philosophy? Have seen a lot of people do *all* their calculations in interrupt, which is a crude way to make a "real time system" but if you have more than one interrupt source its a mess. You might manually re-enable interrupts in your TIM0 service routine. This will let timer1 OVF run immediately. But its opening a can of worms. If TIM0 depends on anything the overflow routine is doing, and vice versa, you have a mess. -- David Kelly N4HHE, dkelly@HiWAAY.net ============================================================ Whom computers would destroy, they must first drive mad.
2013-10-12 by David VanHorn
I agree, interrupts should be as short as possible. Set flags, put stuff in or out of buffers, and get out. Let the non int code handle the rest. I have never had to stack interrupts for any reason.