Dear All,
I am working on the TPMS solution MPXY8300. As a base code, I am referring to the evaluation kit code provided along with the kit. My query concerns the RTI and the periodic wake up timer.
The time base for the application is set using the PWU (Periodic wake Up timer). the inttrupt service routine for the PWU contains the following code
void interrupt USER_4_INTERRUPT(void)
{
PWUSC0_WUFACK = SET;
PWUSC1_PRFACK = SET;
Periodic_Wake_UP_Measures();
}
void Periodic_Wake_UP_Measures()
{
unsigned char i;
EnableInterrupts;
_asm rti;
}
My question is regarding the " _asm rti; " statemtn in the funtions Periosdic_Wake_UP_MEasures.
1. What does "_asm rti" do exactly?
2. When we are not using the RTI for the time base of the application and not setting the RTI control registers, what significance does the asm call imply?
Please help me understand the working and differences and dependencies if any of RTI and PWU.
Thanks,
Renu
Hi Renu,
I know nothing of this device but still may be able to set you straight here.
The _asm rti; refers to an inline assembly instruction. RTI is "ReTurn from Interrupt"
Perhaps you are confusing it with a Real Time Interrupt module?