SLVUCI5 april 2023 AM6526 , AM6528 , AM6548 , TPS6594-Q1
If a moderate error occurs, an orderly shutdown trigger is generated. This trigger shuts down the PMIC outputs using the recommended power down sequence and proceed to the SAFE state.
If an OFF request occurs, such as the ENABLE pin being pulled low, the same power down sequence occurs, except that the PMICs go to STANDBY (LP_STANDBY_SEL=0) or LP_STANDBY (LP_STANDBY_SEL=1) states, rather than going to the SAFE state. The power sequence for both of these events is shown in Figure 6-3.
Both the TO_SAFE_ORDERLY and TO_STANDBY sequences set the FORCE_EN_DRV_LOW bit.
At the end of the TO_SAFE_ORDERLY both PMICs wait approximately 16 ms before executing the following instructions:
// Clear AMUXOUT_EN and CLKMON_EN and set LPM_EN
REG_WRITE_MASK_IMM ADDR=0x81 DATA=0x04 MASK=0xE3
// Reset all BUCKs (not performed in the TO_STANDBY sequence)
REG_WRITE_MASK_IMM ADDR=0x87 DATA=0x1F MASK=0xE0
// Make GPIO9 an input with pulldown enabled
REG_WRITE_MASK_IMM ADDR=0x39 DATA=0x18 MASK=0x00
// Make GPIO10 an input with pulldown enabled
REG_WRITE_MASK_IMM ADDR=0x3A DATA=0x08 MASK=0x00
The resetting of the BUCK regulators is done in preparation to transitioning to
the SAFE_RECOVERY state, meaning that the PMIC leaves the mission state. The SAFE_RECOVERY
state is where the recovery mechanism increments the recovery counter and determines if the
recovery count threshold (see Table 5-10) is reached before attempting to recover.At the end of the TO_STANDBY sequence, the same 16 ms delay and instructions are with the exception of the BUCK_RESET. After these instructions, the PMIC performs an additional check to determine if the LP_STANDBY_SEL (see Table 5-10) is true. If true then the PMICs enter the LP_STANDBY state and leave the mission state. If the LP_STANDBY_SEL is false, then the PMICs remain in the mission state defined by STANDBY in Configured States.