CHAPTER 16 RESET FUNCTION
Preliminary User’s Manual U16846EJ1V0UD
310
16.1 Register for Confirming Reset Source
Many internal reset generation sources exist in the 78K0/KB1+. The reset control flag register (RESF) is used to
store which source has generated the reset request.
RESF can be read by an 8-bit memory manipulation instruction.
RESET input, reset input by power-on-clear (POC) circuit, and reading RESF clear RESF to 00H.
Figure 16-5. Format of Reset Control Flag Register (RESF)
Address: FFACH After reset: 00H
Note
R
Symbol
7 6 5 4 3 2 1 0
RESF 0
0
0 WDTRF 0
0 CLMRF
LVIRF
WDTRF
Internal reset request by watchdog timer (WDT)
0
Internal reset request is not generated, or RESF is cleared.
1
Internal reset request is generated.
CLMRF
Internal
reset
request by clock monitor (CLM)
0
Internal reset request is not generated, or RESF is cleared.
1
Internal reset request is generated.
LVIRF
Internal reset request by low-voltage detector (LVI)
0
Internal reset request is not generated, or RESF is cleared.
1
Internal reset request is generated.
Note The value after reset varies depending on the reset source.
Caution Do not read data via a 1-bit memory manipulation instruction.
The status of RESF when a reset request is generated is shown in Table 16-2.
Table 16-2. RESF Status When Reset Request Is Generated
Reset Source
Flag
RESET input
Reset by POC
Reset by WDT
Reset by CLM
Reset by LVI
WDTRF Set
(1)
Held
Held
CLMRF Held
Set
(1)
Held
LVIRF
Cleared (0)
Cleared (0)
Held Held Set
(1)