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?
Solved! Go to Solution.
Hi Kayji,
I suspect that you are not clearing the real-time interrupt-flag, and therefore executing the ISR repeatably.
Are you writing a one to RTIACK?
Hi Kayji,
I suspect that you are not clearing the real-time interrupt-flag, and therefore executing the ISR repeatably.
Are you writing a one to RTIACK?
**bleep**.. i forgot that
thank you so much