David Demers

Delay Interrupt from fireing

Discussion created by David Demers on Jul 29, 2008
Latest reply on Aug 5, 2008 by Mark Butcher
I have a MCF52231 Design which has  an interrupt signal connect to Edge port flag 1, and flag 2, Is there a way to have the intrrupt hold off on calling its handler, until I allow the to fire.
When the interrupts are resumed, I want any lines that have toggled to then call their handler, so I dont miss the interrupt.
I have a loop that looks like
while(1){   PauseInt();                  // Set interrupt to hold off   MainLoop_Check_FUNCTION();   // Process some code   ResumeInt();                 // resume interrupts   tk_sleep(200*5);             // Sleep process for 5 sec (while interrupts clear)}