AnsweredAssumed Answered

Real time interrupt problem

Question asked by Hee sang Shin on May 16, 2011
Latest reply on May 23, 2011 by Hee sang Shin

hello.

Recently I'm making a embedded module using a real time interrupt.

Problem is if I call a real time service routine, main function doesn't work any more. I mean, the code after the code which can enable a real time interrupt  can't be executed.

 

This is my code.

 

//// real time service routine ///

#pragma CODE_SEG __NEAR_SEG NON_BANKED
interrupt void RTI_ISR(void){          
  main_routine();                     
 }

 

// function//

void main_routine(void) { functions();}


// main function //

void main{

 

some codes;

EnableInterrupts;

codes that don't work any more;

 

}

 

I think routine is working well but only that codes have a trouble. what's wrong with my code?

Outcomes