Hello,
What is the difference between AD5940_EnterSleepS() and AfePwrCfg(AFE_HIBERNATE) ?
AD5940_EnterSleepS() uses the register REG_AFE_SEQTRGSLP while AfePwrCfg(AFE_HIBERNATE) uses pADI_ALLON->PWRMOD.
Why are there two ways to enter hibernate mode ? What is the difference between these two ways to enter hibernate mode ?
In the examples, both are used:
M355_PwrModes uses AD5940_EnterSleepS()
M355_UART_Wakeup and M355_RTC use AfePwrCfg(AFE_HIBERNATE)
case PWRMODE_HIBERNATE:
{
AD5940_EnterSleepS(); //Enter AD5940 into hibernate. Sineosr bias is maintainded by default
PwrCfg(ENUM_PMG_PWRMOD_HIBERNATE, // Place digital die in Hibernate
BITM_PMG_PWRMOD_MONVBATN,
BITM_PMG_SRAMRET_BNK2EN);
break;
}
Edit Notes
Space[edited by: ViToCov at 11:49 AM (GMT -5) on 26 Nov 2025]