Real Time Interrupt

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

Real Time Interrupt

1,371 次查看
cleriton
Contributor I

Hello

 

I need a help to use the Real Time Interrupt (RTI),I am using the kit EVK 13213-SRB, I am doing a program to wake up from stop mode 2 using RTI, I configured the RTI in the Device Initialization the prescaler for wake ip every 1024us, put the internal oscilator as RTI clock source, enabled the register ''RTIE'' and configured to enter in the stop mode 2, but, when I debug the program, he don't leave the stop mode.I don't know if I am missing in the cpu configuration. Could you help me?

标签 (1)
标记 (1)
0 项奖励
回复
3 回复数

1,101 次查看
bigmac
Specialist III

Hello,

 

When the BDM is active, you will enter stop 3 mode, rather than stop 2 mode.  Then according to the datasheet,

"The 1 kHz internal RTI clock is not available in stop3 with active BDM enabled."

 

Does wakeup occur correctly for normal operating mode, with BDM multilink disconnected?

 

Regards,

Mac

 

0 项奖励
回复

1,101 次查看
cleriton
Contributor I

Hello,  and sorry for the delay..

 

In the stop mode 2 you have to disable BDM with the register SOPT1_BKGDPE=1; but, when i write the code in the vector rti to wake up from stop mode 2, nothing hapens to the cpu, he just remains in stand by and doesn't wake up.

 

 

0 项奖励
回复

1,101 次查看
cleriton
Contributor I

Hello

 

When I compile the code in stop mode2 with the BDM disconected I can't se the program step by step and when I  disconect him and conect again I can't debug, appear a message telling that don't have voltage enough and ask to reset him.

0 项奖励
回复