R8C/13 Group
17.3 Functions To Prevent Flash Memory from Rewriting
17.3 Functions To Prevent Flash Memory from Rewriting
To prevent the flash memory from being read or rewritten easily, standard serial I/O mode has an ID code
check function.
17.3.1 ID Code Check Function
Use this function in standard serial I/O mode. Unless the flash memory is blank, the ID codes sent
from the programmer and the ID codes written in the flash memory are compared to see if they match.
If the ID codes do not match, the commands sent from the programmer are not accepted. The ID code
consists of 8-bit data, the areas of which, beginning with the first byte, are 00FFDF16, 00FFE316,
00FFEB16, 00FFEF16, 00FFF316, 00FFF716, and 00FFFB16. Prepare a program in which the ID
codes are preset at these addresses and write it in the flash memory.
Address
Undefined instruction vector
Overflow vector
ID1
ID2
00FFDF16 to 00FFDC16
00FFE316 to 00FFE016
00FFE716 to 00FFE416
00FFEB16 to 00FFE816
00FFEF16 to 00FFEC16
00FFF316 to 00FFF016
00FFF716 to 00FFF416
00FFFB16 to 00FFF816
00FFFF16 to 00FFFC16
BRK instruction vector
Address match vector
ID3
ID4
Single step vector
Oscillation stop detection/watchdog
timer vector/voltage detection
ID5
ID6
(Reserved)
ID7
(Reserved)
Reset vector
(Note 1)
4 bytes
NOTES:
1. The OFS register is assigned to the 00FFFF16
address. Refer to Figure11.2 OFS, WDC, WDTR
and WDTS registers for the OFS register details.
Figure 17.2 Address for ID Code Stored
Rev.1.20 Jan 27, 2006 page 167 of 205
REJ09B0111-0120