RM0046 Mode Entry Module (MC_ME)
Doc ID 16912 Rev 5 173/936
defined rules to initiate the process. If the request fails to satisfy these rules, it is ignored,
and the TARGET_MODE bit field is not updated. An optional interrupt can be generated for
invalid mode requests. Refer to Section 6.4.5, “Mode Transition Interrupts for details.
In the case of mode transitions occurring because of hardware events such as a reset, a
SAFE mode request, or interrupt requests and wakeup events to exit from low-power
modes, the TARGET_MODE bit field of the ME_MCTL register is automatically updated with
the appropriate target mode. The mode change process start is indicated by the setting of
the mode transition status bit S_MTRANS of the ME_GS register.
A RESET mode requested via the ME_MCTL register is passed to the MC_RGM, which
generates a global system reset and initiates the reset sequence. The RESET mode
request has the highest priority, and the MC_ME is kept in the RESET mode during the
entire reset sequence.
The SAFE mode request has the next highest priority after reset. It can be generated either
by software via the ME_MCTL register from all software running modes including DRUN,
RUN0…3, and TEST or by the MC_RGM after the detection of system hardware failures,
which may occur in any mode.
Target Mode Configuration Loading
On completion of the Target Mode Request step, the target mode configuration from the
ME_<target mode>_MC register is loaded to start the resources (voltage sources, clock
sources, flashes, pads, etc.) control process.
An overview of resource control possibilities for each mode is shown in . A ‘
’ indicates that
a given resource is configurable for a given mode.
Table 51. MC_ME Resource Control Overview
Resource
Mode
RESET TEST SAFE DRUN RUN0…3 HALT0 STOP0
16
MHz_IRC
on on on on on on on
XOSC0
off off off off off off off
PLL0
off off off off off off off
CFLASH
normal normal normal normal normal low-power
power-
down
DFLASH
normal normal normal normal normal low-power
power-
down
MVREG
on on on on on on on