Power rail switch control

⚠️
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.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
guxiang
Offline
Last seen:4 days 17 hours ago
加入:2017-05-12 04:18
Power rail switch control

Hi, dialog
We supplied some external device with DA14681 V18P pad pin and v33 pad pin . Can we disable/ enable V18P/V33 power rail output at any time if we need?
We try to control the V18P power rail with the following codes:
///////////////////////////////////////////////////////////////////////////////////////////////
#define dg_configPOWER_EXT_1V8_PERIPHERALS (1)
void V18P_PowerRail_Enable(void)
{
DCDC->DCDC_V18P_1_REG |= (1 << REG_POS(DCDC, DCDC_V18P_1_REG, DCDC_V18P_ENABLE_HV));
DCDC->DCDC_V18P_1_REG &= ~REG_MSK(DCDC, DCDC_V18P_1_REG, DCDC_V18P_ENABLE_LV);
REG_SETF(DCDC, DCDC_V18P_0_REG, DCDC_V18P_VOLTAGE, 0x16);
}
void V18P_PowerRail_Disable(void)
{
DCDC->DCDC_V18P_1_REG &= ~(REG_MSK(DCDC, DCDC_V18P_1_REG, DCDC_V18P_ENABLE_HV) |
REG_MSK(DCDC, DCDC_V18P_1_REG, DCDC_V18P_ENABLE_LV));
}
////////////////////////////////////////////////////////////////////////////////////////////////////
But it didn't work and V18P Pin always kept 1.8V voltage.
Can we control V18P/v33 power rail output ? And please give us some reference codes if it can.

Device:
PM_Dialog
Offline
Last seen:5 hours 45 min ago
工作人员
加入:2018-02-08 11:03
Hi guxiang,

Hi guxiang,

You are not able to power of the V33, but only the V18 and V18P you are able to disable There is an API (legetai cpm_1v8p_state) in the SDK by default, in which only the pm_get_1v8_state is implemented, so you are able to control only the V18 state. You will find attached a custom API in which thepm_set_1v8p_stateis implemented. Be aware that is acustom APIand not an official realease. In order to disable the V18P, you can call the pm_set_1v8p_state (false) function of the custom API.

Thanks, PM_Dialog

Attachment: