I am developing with CC11110. I am trying to wake from sleep at mode 3. The wake is by 4 buttons(external input interrupt).
when there is no sleep, the application identify every button press. But with sleep, sometimes it wake and sometimes not.
I tried to add the following command:
SLEEP &= 0xFC; // clearing of the SLEEP.MODE bits will ensure that the application does not enter PM{1 – 3}.
at every interrupt ISR that I got, without successful.
The external IO I use are P0_0,P0_1,P0_2,P0_3.
The configuration before sleep is as follows:
P0SEL &= 0xf0; //GENERAL IO
P0DIR &= 0xf0; //inputs.
P0INP &= 0xff; //tristate
P0IFG = 0; //clear interrupts flag
PICTL |= 8; //Port 0, inputs 3 to 0 interrupt enable.
PICTL |= 1; //Port 0, inputs 7 to 0 1 Falling edge on input gives interrupt.
Is someone can help me with this issue?