STOP MODE 3

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

STOP MODE 3

跳至解决方案
1,830 次查看
cleriton
Contributor I

Hi, I need a help to enter in the stop mode 3 , I am using the kit EVK 13213-SRB, I selected the register and the stop mode tha i will use in the Device Inicilization, but, i don't know the program or code that enter in the stop mode.Could you help me?

 

Thanks.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,453 次查看
bigmac
Specialist III

Hello, and welcome to the forum.

 

How do you intend to wake up from STOP3 mode?  For other than an external reset, the alternatives would appear to be the RTI module, external interrupt pin, or the KBI module.  One of these methods will need to generate an interrupt to provide stop mode exit, and this will need to be enabled prior to entering stop mode.

 

Stop mode is entered by incorporating the STOP instruction within the main loop, at the point where you wish to start this mode.  For a C program, you would use __asm stop;

 

When the wake-up source becomes active, the associated ISR code would first be executed, and then the main loop code will resume at the next instruction after the stop instruction.

 

Regards,

Mac

 

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,454 次查看
bigmac
Specialist III

Hello, and welcome to the forum.

 

How do you intend to wake up from STOP3 mode?  For other than an external reset, the alternatives would appear to be the RTI module, external interrupt pin, or the KBI module.  One of these methods will need to generate an interrupt to provide stop mode exit, and this will need to be enabled prior to entering stop mode.

 

Stop mode is entered by incorporating the STOP instruction within the main loop, at the point where you wish to start this mode.  For a C program, you would use __asm stop;

 

When the wake-up source becomes active, the associated ISR code would first be executed, and then the main loop code will resume at the next instruction after the stop instruction.

 

Regards,

Mac

 

0 项奖励
回复
1,453 次查看
cleriton
Contributor I

Thank's for the help.

 

Solved My problem.

 

 

Thanks a lot.

0 项奖励
回复