R01UH0823EJ0100 Rev.1.00
Page 147 of 1823
Jul 31, 2019
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.
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