Hi, I am trying to put the DA14531MOD into clocked deep_sleep mode with wakeup on P0-8 as follows:
#define BTN1_PORT GPIO_PORT_0 #define BTN1_PIN GPIO_PIN_8 spi_flash_power_down(); GPIO_ConfigurePin(BTN1_PORT, BTN1_PIN, INPUT_PULLDOWN, PID_GPIO, false); wkupct_enable_irq(WKUPCT_PIN_SELECT(BTN1_PORT, BTN1_PIN), WKUPCT_PIN_POLARITY(BTN1_PORT, BTN1_PIN, 0), 1, 5); arch_set_deep_sleep(PD_SYS_DOWN_RAM_OFF, PD_SYS_DOWN_RAM_OFF, PD_SYS_DOWN_RAM_OFF, true);
The power consumption does drop but not as much as I'd expect. Am I doing it right? Is there anything else I should do to ensure that the power consumption is as low as possible?
I am using DA14531_SDK_6.0.18.1182.1
Hi Charlie,Thank you for the reply. Glad you were able to improve your current consumption.Yes, by default the arch_set_deep_sleep should be set to false to get better results. When you call arch_set_dee…
Hi There,Thank you for posting your question online.What are the measurements you are getting for Deep Sleep on the DA14531MOD?I worked on the prox_reporter example, I set the P0_8 as my Button on the wake-up controller and then I followed the guide here:6. Deep Sleep configuration — DA145XX Tutorial Sleep Modes (renesas.com)I was able to measure the current like this:And I saw a current consumption of 1μA which is expected:Kind Regards,OV_Renesas
A Nordic PPK2 is used to measure the current - this is a custom board with other components on it (a microcontroller, a battery charging circuit and other things) which all use power so getting an exact measurement for the DA14531MOD power usage is tricky.
But I just discovered that if I change the last parameter to arch_set_deep_sleep (pad latch enable) from true to false the power consumption is much improved. Previously, the board was using 1.05mA, this has dropped down to 0.055mA - a 20x improvement!
I am sure that the majority of the remaining power consumption is caused by the other components on the board.
So - is it OK to set pad_latch_enable to false when using a GPIO to wake from deep_sleep?
Thanks for your help,Charlie.
Ah, my apologies, I see from the link that this is the correct way to do it.
Hi Charlie,Thank you for the reply. Glad you were able to improve your current consumption.Yes, by default the arch_set_deep_sleep should be set to false to get better results. When you call arch_set_deep_sleep with pad latch set to true, you keep the pads enabled or retained until you wake-up. This is what raises the power consumption.Kind Regards,OV_Renesas