20.3.2.1.9 RESET Cause

Special Function Registers (SFRs) are provided to identify Reset causes, as shown in the Interpretation of RESET Flags table. Multiple Resets can simultaneously occur, leading to the activation of several Reset cause flags.

Table 20-1. Nomenclature
ValueDescription
0Cleared - This flag is cleared in the register
1Set - This flag is set in the register
UUndefined - See notes
VValid - This flag may be set while another flag is currently set
Table 20-2. Interpretation of RESET Flags
MCFLAGSBMCFLAGSARSTFRCause
UPDICFDVREGCRCWDTBOOTDCLSECDFTOCDMCRFECRFUPDIRFSWRFWDRFEXTRFBORFPORF
00UV0VV000V0000001POR(1)
VVUVVVVVVVVVVVVV10BOR(2,3)
VVVVVVVVVVVVVVV1V0External Reset(2,3)
VVVVVVVVVVVVVV1VV0Watchdog Reset(1,2)
VVVVVVVVVVVVV1VVV0Software Reset(2,3)
VVVVVVVVVVVV1VVVV0UPDI Reset(2,3)
VVVVVVVVVVV1VVVVV0Error Controller Reset(2,3)
VVVVVVVVVV1VVVVVV0Machine Check Reset
Note:
  1. An error may be detected during the boot process after the initial Reset, causing MCRF to be set and MCFLAGS to identify the source. MCRF will also be set if the only MCFLAG set is VREG, which has an UNDEFINED value. In this case, MCRF should also be considered UNDEFINED.
  2. An error may be detected during the boot process after the initial Reset, causing MCRF to be set and the MCFLAGS to identify the source.
  3. MCFLAGSA and MCFLAGSB are only valid if MCRF in RSTFR is set.