Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] interupt priority

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.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.