Hi Archita Dutta,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
Q1) Is the above piece of code sufficient to put the MCU to deep sleep?
-- Yes, however, the MCU won't be wake-up if just using the function.
Q2) What I need now is to wake the MCU back up. Can anyone help me with some pointers to sample codes?
-- To provide the fastest possible support, I'd highly recommend you to refer to the PMU demo in the LPCOpen library, it demonstrates power state change using the RTC timer to wake-up the MCU from the following low power states, SLEEP, DEEP SLEEP, POWER DOWN,
and DEEP POWER DOWN.
Have a great day,
TIC
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------