User's Manual

Table Of Contents
R01UH0823EJ0110 Rev.1.10 Page 152 of 1852
Nov 30, 2020
RX23W Group 6. Resets
6.3.8 Determination of Reset Generation Source
Reading RSTSR0 and RSTSR2 determines which reset was used to execute the reset exception handling.
Figure 6.4 shows an example of the flow to identify a reset generation source.
Figure 6.4 Example of Reset Generation Source Determination Flow
No
Yes
No
Yes
No
Yes
No
Yes
Yes
RSTSR0.
PORF = 1
No
RSTSR2.
WDTRF = 1
RSTSR0.
LVD1RF = 1
RSTSR0.
LVD0RF = 1
RSTSR2.
IWDTRF = 1
Software
reset
Independent
watchdog
timer reset
Reset exception
handling
Voltage
monitoring 0
reset
Power-on
reset
Voltage
monitoring 1
reset
Watchdog
timer reset
Yes
RSTSR2.
SWRF = 1