AnsweredAssumed Answered

MKE04Z128VQH4 DEEP SLEEP MODE

Question asked by Evren Kenanoglu on Jul 26, 2019
Latest reply on Jul 30, 2019 by Jing Pan

Dear Sir or Madam,

 

I'm working on MKE04Z128VQH4 microcontroller. My plan is that putting microcontroller deepsleep mode and wake it up via Uart Interrupt.

   I managed to put it deepsleep mode with this code:(or maybe I thought I could)  

 

void DeepSleep()
{
SCB->SCR |=  SCB_SCR_SLEEPDEEP_Msk;
SCB->SCR |=  SCB_SCR_SEVONPEND_Msk ; // wake up with any interrupt

uint32_t SLEEPONEXIT_Mask = ~(SCB_SCR_SLEEPONEXIT_Msk);
SCB->SCR &= SLEEPONEXIT_Mask;
__WFI();

}

 

But I couldn't wake it up. 

After that, I have noticed that in the Functional Block Diagram Picture WIC(Wakeup Interrupt Controller) is an optional component and asked your online support service. She said that "it seems in this MKE04Z128VQH4 we don't have but ask the community."

 

Here are my first questions:

1) Does the MKE04Z128VQH4 have the WIC module?

if(Answer=="No") 

1.1) In this pdf https://www.nxp.com/docs/en/data-sheet/MKE04P80M48SF0.pdf it includes MKE04Z128VQH4(R), it says STOP() mode exists. How can we wake up in STOP(DeepSleep) mode?

if(Answer=="Yes)

1.2) How can we wake up the processor without WIC in DEEPSLEEP mode? 

 

2) Could we wake up any serial communication interrupt(Uart, SPI...)?

 

3) Could you provide me MKE04Z128VQH4(R) modules datasheet? Cause I couldn't find it?

 

 

I'm sorry it's an emergency, hope you answer me quickly!

Best Regards.

Outcomes