STOP2 and RTI Isr on QG8

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

STOP2 and RTI Isr on QG8

ソリューションへジャンプ
1,681件の閲覧回数
jag
Contributor IV

Hi,

in STOP3, when RTI wakes up the MCU, the RTI Isr is fired, executed (it increments a variable) and then the flow of the program return to the instruction after "asm stop".

 

Now: what happens with the STOP2 mode? the RTI Isr is executed or not? Because I use the RTI Isr (executed every 1024 msec) as "rough" clock because I need to do things every 30 sec, so the MCU wake up, increment a variable, check if it's less than 30 goes to sleep, else does some work.

 

Thanks bye Jack 

ラベル(1)
0 件の賞賛
返信
1 解決策
768件の閲覧回数
bigmac
Specialist III

Hello Jack,

 

It is my understanding that, when the RTI module is used to wakeup from STOP2 mode, the normal reset vector is used, rather than the RTI vector.  You would then need to test the SPMSC2_PPDF bit to determine when the reset is a result of STOP2 recovery.

 

Regards,

Mac

 

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
769件の閲覧回数
bigmac
Specialist III

Hello Jack,

 

It is my understanding that, when the RTI module is used to wakeup from STOP2 mode, the normal reset vector is used, rather than the RTI vector.  You would then need to test the SPMSC2_PPDF bit to determine when the reset is a result of STOP2 recovery.

 

Regards,

Mac

 

0 件の賞賛
返信