Working of RTI and PWU timer on MPXY8300

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Working of RTI and PWU timer on MPXY8300

1,345 次查看
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

标签 (1)
0 项奖励
回复
1 回复

683 次查看
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 项奖励
回复