Hi,

You can do that:

Irq_Routine:
                ... IRQ Code ...
Wakeup_PowerDown:
                bic #(CPUOFF),0(SP)        ; Wake Up (after RETI)
                reti


----- Original Message ----- 
From: Ori Idan
To: [email protected]
Sent: Tuesday, September 18, 2007 3:54 PM
Subject: [Mspgcc-users] Exiting from low power mode


When I enter a low power mode, I set bits in register SR
I understand that this register is pushed on the stack when entering 
interrupt service routine.
How do I change the SR from within the interrupt service routine so that I 
can exit low power mode when returning from the interrupt?
I would like to do it in C without resorting to assembly.

-- 
Ori Idan






Reply via email to