Hi Chris,
Turns out I have another question that you may be able to answer. So I used the low power PE code from the KL25Z sample codes and I'm coming across an issue for coming out of VLLSx mode. I am able to come out of low power with a LLWU interrupt but when it comes to the second time around, a LLWU interrupt doesn't work anymore.
I was reading that there are some flags I need to reset but I just am lost on which ones to reset...
I'm using the blue touch as an LLWU for VLLSx and here is my code...
PORTB_PCR2 = PORT_PCR_PS_MASK|PORT_PCR_PE_MASK|PORT_PCR_PFE_MASK|PORT_PCR_IRQC(10)|PORT_PCR_MUX(1);
// RESET SOME PINS HERE??
LLWU_PE2 = LLWU_PE2_WUPE5(3);
Wake_Up_Enable();
Cpu_SetOperationMode(DOM_STOP,NULL,NULL);
if(TmrWkupFlg)
TmrWkupFlg = FALSE;
Wake_Up_Disable();
Thank you for your help.