13.15.4.3 Using the RCON Status Bits

The user software can read the RCON register after any system Reset to determine the cause of the reset. The following table provides a summary of the Reset flag bit operation.

Note: The status bits in the RCON register must be cleared after they are read, so that the next RCON register value after a device Reset will be meaningful.
Table 13-5. Reset Flag Bit Operation
Flag BitSet byCleared by
POR (RCON[0])PORUser Software
BOR (RCON[1])POR, BORUser Software
IDLE (RCON[2])WAIT InstructionUser Software, POR, BOR
STANDBY SLEEP (RCON[3])WAIT InstructionUser Software, POR, BOR
WDTO (RCON[4])WDT timeout and NMI counter expiresUser Software, POR, BOR
DMTO (RCON[5])DMT Timeout and NMI counter expiresUser Software, POR, BOR
SWR (RCON[6])Software Reset CommandUser Software, POR, BOR
EXTR (RCON[7])NMCLR ResetUser Software, POR, BOR
CMR (RCON[9])Configuration Mismatch ResetUser Software, POR, BOR
BCFGFAIL (RCON[26])Non-recoverable error in Primary and Alternate configuration wordsUser Software, POR, BOR
BCFGERR (RCON[27])Recoverable error in primary configuration wordsUser Software, POR, BOR