Problem with to high supply current in DeepSleep mode in LPC4370

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem with to high supply current in DeepSleep mode in LPC4370

479 Views
robert_bakiewic
Contributor I

A schematics in the attachment shows a configuration of LPC4370 controller, where I have a trouble with too high supply current in sleep mode, which is 106uA. I use Deep Sleep mode and according to a datasheet , the current should be about 30uA. 

Would it be possible to get schematics and description of the ”preparation to get the processor to go to Deep Sleep mode” which will result in by your specification defined 30uA?    

My preparation to sleep is as follow: 

1. I turn off pullups on boot configuration lines: P1.1, P1.2, P2.8, P2.9 

2. I change the state of SPIFI CS line to high. I don't know why the bootloader leaves it in the low state and the SPIFI memory is in an active state with a high supply current . 

3. I change the main clock to internal RC 12MHz:     

reg = LPC_CGU->BASE_CLK[4];     /* Mask off fields we plan to update */    

reg &= ~((0x1F << 24) | 1 | (1 << 11));    

LPC_CGU->BASE_CLK[4] = reg | (1 << 24) | (1 << 11); 

4. I turn off PLL loops:     

LPC_CGU->PLL1_CTRL |= 1;    

LPC_CGU->PLL[0].PLL_CTRL |= 1;    

LPC_CGU->PLL[1].PLL_CTRL |= 1; 

5. I set DeepSleep mode:     

LPC_PMC->PD0_SLEEP0_HW_ENA=0x01;     /* Set Deep sleep mode bit in System Control register of M4 core */     SCB->SCR = 0x4;    

LPC_PMC->PD0_SLEEP0_MODE = (uint32_t) 0x3000aa; //Deep Sleep mode 

6. I turn off JTAG:     

LPC_CREG->CREG5=(1<<10) | (1<<11) | (1<<12);

7. The processor goes to sleep: 

__WFI();  

Attempts of boot with the use of an external SPIFI memory and by the use of JTAG interface to load and run the code, are leading to the same value of supply current. In case of JTAG interface after running the code I unplug the JTAG connector, SPIFI memory is removed in this case. Noteworthy is that turning off the JTAG in CREG5 register does not influence the supply current, the User manual UM10503 suggests that should be a difference. Hardware blocking of JTAG by setting the low state on DBGEN line (R47 in the attached schematics is removed) leads to supply current increase. It is a result of presence of an active pullup on this line inside the chip and probably it is not possible to turn it off (I did not find in manual anything how to do it).

Labels (1)
0 Kudos
1 Reply

401 Views
kerryzhou
NXP TechSupport
NXP TechSupport

Hi Rboert,

     Thanks a lot for your interest in NXP LPC product, I would like to provide service for you.

    From the datasheet, you can find one of the conditions for getting the data is all peripherals disabled. So if you want to get the same data as the datasheet, you also need to disable the other peripherals.

   Actually, we have an application note for your reference.

   Before you enter the low power mode, you can call the Optimize_Power, please refer to application note AN11853:

  https://www.nxp.com/docs/en/application-note/AN11853.zip 

  Besides, in the hardware, you need to make sure your power consumption test point just contains the MCU power, not other external chip consumption.

Wish it helps you!

If you still have question about it, please kindly let me know!
Have a great day,
Kerry

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos