OK great thanks for the clarifacation Cheers Seb Le 8 janv. 2013 12:31, "Oliver Seitz" <[email protected]> a écrit :
> > > > When interrupts are disabled, there won't be interrupt anymore, they won't > queue until you enable them again. Right? Am I missing something ? > > The IF flag will be set, even if GIE is not set. For GIE is not set, no > interrupt will be triggered. > > As soon as GIE becomes set, and the corresponding IE (and possibly PEIE) > for a set IF flag are also set, an interrupt is triggered. At least this is > how I've always read the datasheets. So the interrupts are not literally > queued, but latched. If one interrupt source would trigger two interrupts > while GIE is unset, only one interrupt will result. Therefore, GIE should > not be unset for too long, but copying a single variable of two or four > bytes should never take longer than two interrupts of the same kind. > > The period in which GIE is unset should be kept as short as possible, of > course. > > Greets, > Kiste > > -- > You received this message because you are subscribed to the Google Groups > "jallib" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/jallib?hl=en. > -- You received this message because you are subscribed to the Google Groups "jallib" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jallib?hl=en.
