R01UH0823EJ0100 Rev.1.00 Page 140 of 1823
Jul 31, 2019
RX23W Group 6. Resets
6.2.3 Reset Status Register 2 (RSTSR2)
Note 1. The value after reset depends on the reset source.
Note 2. Only 0 can be written to clear the flag.
IWDTRF Flag (Independent Watchdog Timer Reset Detect Flag)
The IWDTRF flag indicates that an independent watchdog timer reset has occurred.
[Setting condition]
ï‚· When an independent watchdog timer reset occurs.
[Clearing conditions]
ï‚· When a reset listed in
Table 6.2 occurs.
ï‚· When IWDTRF is read as 1 and then 0 is written to IWDTRF.
WDTRF Flag (Watchdog Timer Reset Detect Flag)
The WDTRF flag indicates that a watchdog timer reset has occurred.
[Setting condition]
ï‚· When a watchdog timer reset occurs.
[Clearing conditions]
ï‚· When a reset listed in
Table 6.2 occurs.
ï‚· When WDTRF is read as 1 and then 0 is written to WDTRF.
SWRF Flag (Software Reset Detect Flag)
The SWRF flag indicates that a software reset has occurred.
[Setting condition]
ï‚· When a software reset occurs.
[Clearing conditions]
ï‚· When a reset listed in
Table 6.2 occurs.
ï‚· When SWRF is read as 1 and then 0 is written to SWRF.
Address(es): 0008 00C0h
b7 b6 b5 b4 b3 b2 b1 b0
—————SWRF
WDTR
F
IWDTR
F
Value after reset:
00000
0*
1
0*
1
0*
1
Bit Symbol Bit Name Description R/W
b0 IWDTRF Independent Watchdog Timer Reset Detect
Flag
0: Independent watchdog timer reset not detected.
1: Independent watchdog timer reset detected.
R(/W)
*2
b1 WDTRF Watchdog Timer Reset Detect Flag 0: Watchdog timer reset not detected.
1: Watchdog timer reset detected.
R(/W)
*2
b2 SWRF Software Reset Detect Flag 0: Software reset not detected.
1: Software reset detected.
R(/W)
*2
b7 to b3 — Reserved These bits are read as 0. The write value should be 0. R/W