[Icc-avr] Is there something wrong with this RTC interrupt?

BobGardner at aol.com BobGardner at aol.com
Fri Jan 4 04:41:28 PST 2008


Read the instructions, but use the word 'lights' instead of 'interrupts'.  
When you get to the handler, the 'lights' have been turned out by the hw, but  
you turn off the 'lights' again when you enter the room (enter the handler?),  
which does nothing, because they are already off. But before you leave the  
handler (leave the room?), you turn on the 'lights', which is where this lame  
analogy breaks down, because if there is an interrupt pending, it hits right  
then, with all 32 regs still stacked, causing stack growth, which cant go on 
for  too long. Run it without the cli and sei in the handler.
 
In a message dated 1/3/2008 11:03:35 P.M. Eastern Standard Time,  
scottk at skelleyco.com writes:

I'm well in over my  head with this stuff...
 
I don't understand why  cli does nothing...
 
I've forgotten  more than I ever knew about machine language... what would be 
occurring  if "The second one reenables ints BEFORE the regs are popped"?  
What  would be the way to deal with this?
 






**************Start the year off right.  Easy ways to stay in shape.     
http://body.aol.com/fitness/winter-exercise?NCID=aolcmp00300000002489
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://dragonsgate.net/pipermail/icc-avr/attachments/20080104/7715cf91/attachment.html


More information about the Icc-avr mailing list