20.5.1 Reset Flag Register
A Power-on Reset (POR) will clear all flags except for the Power-on Reset (PORF) flag.
A Brownout Reset (BOR) will clear all flags except for the Brownout Reset (BORF) flag, and the Power-On Reset (PORF) flag will be left unchanged.
| Name: | RSTFR |
| Offset: | 0x00 |
| Reset: | 0xXX |
| Property: | - |
| Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
| MCRF | ECRF | UPDIRF | SWRF | WDRF | EXTRF | BORF | PORF | ||
| Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
| Reset | x | x | x | x | x | x | x | x |
Bit 7 – MCRF Machine Check Reset Flag
This flag is cleared by writing a ‘1’ to it.
This flag is set if a Machine Check Reset has occurred. The cause for the error is described in the MCFLAGSA and MCFLAGSB registers.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Machine Check Reset flag.
Bit 6 – ECRF Error Controller Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if an Error Controller Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Error Controller Reset flag.
Bit 5 – UPDIRF UPDI Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if a UPDI Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the UPDI Reset flag.
Bit 4 – SWRF Software Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if a Software Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Software Reset flag.
Bit 3 – WDRF Watchdog Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if a Watchdog Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Watchdog Reset flag.
Bit 2 – EXTRF External Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if an External Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the External Reset flag.
Bit 1 – BORF Brown-out Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set if a Brown-out Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Brown-out Reset flag.
Bit 0 – PORF Power-on Reset Flag
This flag is cleared by writing a ‘1’ to it.
This bit is set to if a Power-on Reset has occurred.
Writing a ‘0’ to this bit has no effect.
Writing a ‘1’ to this bit will clear the Power-on Reset flag.
After a POR, only the POR flag is set, and all the other flags are cleared. Errors may be detected during the boot process after the initial Reset, allowing the MCR flag to be set and the MCFLAGSA and MCFLAGSB registers to identify the source.
