RL78/G1P
CHAPTER 22 OPTION BYTE
R01UH0895EJ0100 Rev.1.00
666
Nov 29, 2019
22.3 Format of On-chip Debug Option Byte
The format of on-chip debug option byte is shown below.
Figure 22-4. Format of On-chip Debug Option Byte (000C3H)
Address: 000C3H
7 6 5 4 3 2 1 0
OCDENSET
0 0 0 0 1 0
OCDERSD
OCDENSET
OCDERSD
Control of on-chip debug operation
0
0
Disables on-chip debug operation.
0 1
Setting
prohibited
1 0
Enables on-chip debugging.
Erases data of flash memory in case of failures in authenticating on-chip debug
security ID.
1
1
Enables on-chip debugging.
Does not erases data of flash memory in case of failures in authenticating on-chip
debug security ID.
Caution Values can only be specified for bits 7 and 0 (OCDENSET and OCDERSD).
When writing, be sure to write 000010B to bits 6 to 1.
Remark
The value on bits 3 to 1 will be written over when the on-chip debug function is in use and thus it will become
unstable after the setting.
However, be sure to set the default values (0, 1, and 0) to bits 3 to 1 at setting.