How to turn off 1v8p when entering sleep mode

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
3 posts / 0 new
Last post
魏文彬
Offline
Last seen:5 months 1 day ago
加入:2019-04-10 03:51
How to turn off 1v8p when entering sleep mode

hello help me please

I am using "extended_sleep" demo (DA1468x_DA15xxx_SDK_1.0.10.1072)

i need use 1v8p when it working . And i need turn off 1v8p when enter "pm_mode_extended_sleep"

but use function "pm_set_sleep_mode(pm_mode_extended_sleep)" can not close 1v8p.

i find in "sys_power_mgr.c" file ->"apply_wfi" function only close power when "pm_mode_hibernation"

line 1510-------------------------------------------------------------------------------

if (pm_current_sleep_mode == pm_mode_hibernation) {
/* Turn off 1V8 and 1V8P since the system will
* resume either by recharging the battery (where a
* reset/reboot will be issued on the occurrence of
* VBUS_IRQn) or by replacing the battery.
*/
hw_cpm_ldo_io_ret_off();
}

------------------------------------------------------------------------------------------

so ,i add a function when sleep mode to close 1v8p as follows

----------------------------------------------------------------

if (pm_current_sleep_mode == pm_mode_extended_sleep) {
/* Turn off1V8P */

uint32_t reg = CRG_TOP->LDO_CTRL2_REG;

if (dg_configUSE_BOD == 1) {
REG_CLR_BIT(CRG_TOP, BOD_CTRL2_REG, BOD_1V8_PA_EN);
}
REG_SET_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_RET_DISABLE, reg, 1);

REG_CLR_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_ON, reg);
REG_SET_FIELD(CRG_TOP, LDO_CTRL2_REG, LDO_1V8_PA_RET_DISABLE, reg, 1);

CRG_TOP->LDO_CTRL2_REG = reg;
}

----------------------------------------------------------------

but Strange things have happened

look following picture is 1v8p when sleep enter:

i can not up picture

That is to say, although it enters the sleep mode, it does not stop automatically opening 1v8p and then automatically shuts down.

Power consumption jumps at 0.5ma and 0.15ma...

how to solution this problem ?

thanks very much!

Attachment:
Device:
魏文彬
Offline
Last seen:5 months 1 day ago
加入:2019-04-10 03:51
thanks very much i solution

thanks very much i solution this problem,

i put every "dg_configPOWER_1V8P == 1 " add my flag "(dg_configPOWER_1V8P == 1)&&(shut_down_1v8P_Power == false) "

then when i enter sleep mode ,I put this flag in position 1 ,and the 1v8p shut down.

But the library function does not close the 1v8p function.

Suggested to add in the future sdk~

PM_Dialog
Offline
Last seen:1 day 6 hours ago
工作人员
加入:2018-02-08 11:03
Hi There,

Hi There,

Thanks for your indication.

Regards, PM_Dialog