RL78/G1P
CHAPTER 22 OPTION BYTE
R01UH0895EJ0100 Rev.1.00
667
Nov 29, 2019
22.4 Setting of Option Byte
The user option byte and on-chip debug option byte can be set using the assembler linker option, in addition to
describing to the source. When doing so, the contents set by using the linker option take precedence, even if descriptions
exist in the source, as mentioned below.
A software description example of the option byte setting is shown below.
OPT CSEG
OPT_BYTE
DB 36H
;
Does not use interval interrupt of watchdog timer,
;
Enables watchdog timer operation,
;
Window open period of watchdog timer is 50%,
;
Overflow time of watchdog timer is 2
9
/f
IL
,
;
Stops watchdog timer operation during HALT/STOP mode
DB
7AH
;
Select 2.75 V for V
LVDL
;
Select rising edge 1.77 V, falling edge 2.86 V for V
LVDH
;
Select the interrupt & reset mode as the LVD operation mode
DB ADH
;
Select the LS (low-speed main) mode as the flash operation mode
and 1 MHz as the frequency of the high-speed on-chip oscillator
DB 85H
;
Enables on-chip debug operation, does not erase flash memory
data when security ID authorization fails
Caution To specify the option byte by using assembly language, use OPT_BYTE as the relocation attribute
name of the CSEG pseudo instruction.