AnsweredAssumed Answered

KL26Z LLWU flags not being set

Question asked by Tarik Aweimrin on Dec 9, 2014
Latest reply on Dec 19, 2014 by Santiago_Lopez

I am entering vlls0 in my application.  Right before this I am enabling 3 external pin wakeup sources.  All my wakeup sources will exit and cause a reset but upon reset the LLWU_Fx registers are not indicating any wakeup source and when I enable the LLWU isr I am not getting to my ISR.  Strangely though, when I put a long delay at the beginning of my main loop before any initialization, the LLWU_Fx flag is being set and it will go to the ISR.

 

This will not go to my ISR:

void main(void)

{

     Initialization();

     DisableInterrupts;

     enable_irq(LLWU_irq_no);

     EnableInterrupts;

     while(1){..........}

}

 

This will go to my ISR:

void main(void)

{

     for(x=0;x<1000000;x++);

     Initialization();

     DisableInterrupts;

     enable_irq(LLWU_irq_no);

     EnableInterrupts;

     while(1){..........}

}

 

Any assistance would be appreciated. 

Outcomes