AnsweredAssumed Answered

Xgate Software Interrupt Peroid

Question asked by Ray Hall on Jul 28, 2018
Latest reply on Jul 31, 2018 by lama

I am running the S12XE at 48 MHz. I read that Xgate executes code at twice the main processor core. So based on this the software interrupt event in the code below is every 1.04 uSec. Correct ?

Ray.

 

// interrupt handler
interrupt void SoftwareTrigger0_Handler(MyDataType* __restrict pData) {
 
  // put your own code here
  pData->counter++;
  if (pData->counter > 100)  {
    pData->counter= 0;
    shared_counter++;
  }
}

Outcomes