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?
已解决! 转到解答。