Ganesh Kumaravel

HCS12NE64 misses some edge interrupt

Discussion created by Ganesh Kumaravel on Feb 10, 2006
Latest reply on Feb 20, 2006 by Eduardo Montanez
In HCS12NE64,
I configure Port G Pins as rising edge interrupt.
Pulses are given to all port pins at different frequencies.
 
PortG interrupt routine()
{
  1) Storing the PortG interrupt flag register temporarily
   
   if(G4 Set)
  {
     /* Clear Port G4 interrupt Flag */
    
    /* Toggle One Port Pin (any Port H Pins)
  }
  
  if(G5 Set)
  {
     /* Clear Port G5 interrupt Flag */
    
    /* Toggle One Port Pin (any Port H Pins)
  }
 
  if(G6 Set)
  {
     /* Clear Port G6 interrupt Flag */
    
    /* Toggle One Port Pin (any Port H Pins)
  }
  
  if(G7 Set)
  {
     /* Clear Port G7 interrupt Flag */
    
    /* Toggle One Port Pin (any Port H Pins)
  }
}
 
Some Strange things are happening
1) Processor is missing edges randomly at different times.
2) How it is possible?

Outcomes