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.
Message
Re: [AVR-Chat] interupt priority
2013-10-12 by David Kelly
Attachments
- No local attachments were found for this message.