Renesas RL78 Series User Manual page 729

16-bit single-chip microcontrollers
Hide thumbs Also See for RL78 Series:
Table of Contents

Advertisement

RL78/G1D
20.3 Register for Confirming Reset Source
20.3.1 Reset control flag register (RESF)
Many internal reset generation sources exist in the RL78 microcontroller. The reset control flag register (RESF) is used
to store which source has generated the reset request.
The RESF register can be read by an 8-bit memory manipulation instruction.
RESET input, reset by power-on-reset (POR) circuit, and reading the RESF register clear TRAP, WDTRF, RPERF,
IAWRF, and LVIRF flags.
Address: FFFA8H
Symbol
7
RESF
TRAP
TRAP
0
1
WDTRF
0
1
RPERF
0
1
IAWRF
0
1
LVIRF
0
1
Notes 1.
The value after reset varies depending on the reset source. See Table 20-3.
2.
The illegal instruction is generated when instruction code FFH is executed.
Reset by the illegal instruction execution not issued by emulation with the in-circuit emulator or on-chip
debug emulator.
Cautions 1. Do not read data by a 1-bit memory manipulation instruction.
2. When enabling RAM parity error resets (RPERDIS = 0), be sure to initialize the used RAM area
at data access or the used RAM area + 10 bytes at execution of instruction from the RAM area.
Reset generation enables RAM parity error resets (RPERDIS = 0). For details, see 23.3.3 RAM
parity error detection function.
R01UH0515EJ0120 Rev.1.20
Dec 16, 2016
Figure 20-4. Format of Reset Control Flag Register (RESF)
Note 1
After reset: Undefined
6
5
0
0
Internal reset request by execution of illegal instruction
Internal reset request is not generated, or the RESF register is cleared.
Internal reset request is generated.
Internal reset request is not generated, or the RESF register is cleared.
Internal reset request is generated.
Internal reset request is not generated, or the RESF register is cleared.
Internal reset request is generated.
Internal reset request t by illegal-memory access
Internal reset request is not generated, or the RESF register is cleared.
Internal reset request is generated.
Internal reset request is not generated, or the RESF register is cleared.
Internal reset request is generated.
R
4
3
WDTRF
0
Internal reset request by watchdog timer (WDT)
Internal reset request t by RAM parity
Internal reset request by voltage detector (LVD)
CHAPTER 20 RESET FUNCTION
2
1
RPERF
IAWRF
LVIRF
Note 2
0
708

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rl78/g1dR5f11aggR5f11aghR5f11agj

Table of Contents