STOP MODE 3

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

STOP MODE 3

Jump to solution
803 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
426 Views
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

 

View solution in original post

0 Kudos
2 Replies
427 Views
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 Kudos
426 Views
cleriton
Contributor I

Thank's for the help.

 

Solved My problem.

 

 

Thanks a lot.

0 Kudos