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.

Exit from LPM with a determinated interrupt

Other Parts Discussed in Thread: MSP430F1611

Hi all!!

I have been searching the answer of this (silly?) question and I don`t find anything about it.
In my code I have several interrupts enabled and I want to  put my msp430f1611 in LPM1 and exit from it with the interrupt of Timer A, none with other interrupts. The problem is that with GIE tag, any interrupt exits the micro from sleeping. 
I know that one way is to disabled all interrupts except TA interrupt, but my question is if there is any way to do it without disabling the other interrupts.

Thanks a lot for pay attention.

BR,

Luis

  • Luis L��pez said:
    but my question is if there is any way to do it without disabling the other interrupts.

    No. Enabling the GIE bit says "globally enable the interrupt capability" and any peripheral interrupts that are enabled are thus able to interrupt the processor and make it exit LPM mode.

    If you want only one interrupt to wake the processor then you need to disable all other interrupts.

    Luis L��pez said:
    I know that one way is to disabled all interrupts except TA interrupt,

    That's the only way.

  • Thank you, Brian. 

    All my doubts are cleared.

  • If you want to allow a single IRQ to control all the other IRQs to not be allowed or allowed, two choices:

    1: Use watchdog timer as the master IRQ as that one don't answer to GIE bit, (you not the boss of me, it says:)
        as long you are OK with: 1000ms, 250ms,16ms or 1.9ms timer settings (on a 32k crystal)
        but 2x,4x,8x those values are also available if you div aclk.

    2: Make a list of all the IRQs and have the timerA IRQ turn them off/on one-by-one.

**Attention** This is a public forum