Yahoo Groups archive

AVR-Chat

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

Message

Re: [AVR-Chat] Missing interupts

2005-03-28 by David Kelly

On Mon, Mar 28, 2005 at 10:55:50AM -0800, al boehnlein wrote:
[...]
> The documentation is not clear to me, as to what
> happens if I get an interrupt on my quadrature sensors
> while I am in the LCD ISR.  

How much time are you spending in the LCD ISR? I've seen many cases
where somebody went off and wrote their entire program in ISR(s). It was
quite a mess. With few exceptions one should only jump in and back out
as quickly as possible in the ISR. Leave the number crunching in "user"
time outside of IRQ time.

Summarizing what others have said, while the I bit is disabled pending
IRQs are not cached but they will pile up. Only one per source can pile
up, all others from the same source will be lost. Once the I bit is
enabled pending IRQs will be dispatched based on the priority Atmel
defined in the user manual.

-- 
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.