Real Time Interrupt

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

Real Time Interrupt

711 Views
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?

Labels (1)
Tags (1)
0 Kudos
3 Replies

441 Views
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 Kudos

441 Views
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 Kudos

441 Views
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 Kudos