Content originally posted in LPCWare by shashankiim on Sun Jun 30 21:10:20 MST 2013
Quote: Serge
I am not familiar with this MCU but what happens to the registers while the MCU is in deep sleep? Do they keep their values or are they reset when the MCU wakes up? This could happen if internally the power to the memory section where the registers reside is turned off.
Check SYSAHBCLKCTRL register when comming out of deep sleep.
According to datasheet
In Deep-sleep mode, the system clock to the processor is disabled as in Sleep mode. All analog blocks are powered down, except for the BOD circuit and the watchdog oscillator, which must be selected or deselected during Deep-sleep mode in the PDSLEEPCFG register.
Deep-sleep mode eliminates all power used by the flash and analog peripherals and all dynamic power used by the processor itself, memory systems and their related controllers, and internal buses. The processor state and registers, peripheral registers, and internal SRAM values are maintained, and the logic levels of the pins remain static.
To be specific if I program to output a string "open close " I get the constant UART output as "1=M··=A·9·"
I do not understand why this is happening.