BAT32G1x9 user manual | Chapter 29 Reset function
1084 / 1149
Rev.1.02
29.2 the registers of Confirmed reset source
29.2.1
Reset Control Flag Register (RESF).
The BAT32G1x9 microcontroller has multiple sources of internal reset generation. The Reset Control
Flag Register (RESF) holds the reset source at which the reset request occurred. The RESF register can be
read via an 8-bit memory operation instruction.
ClearSRF, WDTRF, CLMRF, via reset of RESET B input, reset of power-on reset (POR) circuit, and read of
RESF registers RPERF, IAWRF, LVIRF marking. To determine the reset source, the value of the RESF register
must be saved to arbitrary RAM and then judged by its RAM value.
Figure 29-4
Reset Control Flag Register (RESF) Format
Address: 40020440H
reset: indefinite value
Note
1
R
Symbol
7
6
5
4
3
2
1
0
FRSR
SYSRF
An internal reset request resulting from a system reset request bit being set
0
No internal reset request was generated or the RESF
register was cleared.
1
Generates an internal reset request.
WDTRF Internal reset request generated by the watchdog timer (WDT).
0
No internal reset request was generated or the RESF register was cleared.
1
Generates an internal reset request.
CLMRF
Internal reset request generated by the damping detection function
0
No internal reset request was generated or the RESF register was cleared.
1
Generates an internal reset request.
RPERF
internal reset request generated by a RAM parity error
0
No internal reset request was generated or the RESF register was cleared.
1
Generates an internal reset request.
IAWRF
internal reset request generated by accessing illegal memory
0
No internal reset request was generated or the RESF register was cleared.
1
Generates an internal reset request.
LVIRF
Internal reset request generated by the voltage sense circuit (LVD).
0
No internal reset request was generated or the RESF register was cleared.
1
Generates an internal reset request.
Note 1
Varies depending on the reset source. Please refer to
Note that in the case of ALLOWing RAM parity error reset (RPERDIS=0), when accessing data, the "RAM region used"
must be initialized; When executing an instruction from a RAM region, the area of "RAM area +10 bytes used" must be
initialized. By generating a reset, enter a state that allows the generation of a RAM parity error reset (RPERDIS=0). For
details, please refer to "31.3.3 RAM Parity Error Detection Function".
SYSRF
0
WDTRF
CLMRF
RPERF
IAWRF
LVIRF