This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to take the MSP430F5635 to sleep mode and how to wakeup from sleep mode

Other Parts Discussed in Thread: MSP430F5635

Hi,

I am using  MSP430F5635 .

1. When the user does not use the system ie. when there is no keypad activity , I have to take the controller to sleep mode .

How is this done ?

2. Similarly when the user presses a key , I have to bring the controller back to active state .

How is this done ?

Thanks in advance .

Jenitta

  • There's a complete chapter in the users guide abotu low power (sleep) modes.

    The short answer is:

    to enter low power mode, use the __bis_SR_regsiter(LPMx_BITS | GIE) intrinsic., where 'x' is the low power mode you want to enter.
    The CPU wakes up on an interrupt event, and goes to sleep again if the ISR exits. Unless you use the __bic_SR_register_on_exit(LPMx_BITS); intrinsic inside the ISR.

    You'll need to program an interrupt source before you enter LPM. (may be port pin edge interrupt, tiemr interrupt, whatever), and you'll have to ensure that the LPM you use does not prohibit the interrupt from happening.

**Attention** This is a public forum