Working of RTI and PWU timer on MPXY8300

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Working of RTI and PWU timer on MPXY8300

917 Views
RenuJ
Contributor I

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

Labels (1)
0 Kudos
1 Reply

255 Views
peg
Senior Contributor IV

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?

 

0 Kudos