Functions To Prevent Flash Memory From Rewriting; Rom Code Protect Function; Id Code Check Function - Renesas M16C/26A Series Hardware Manual

16-bit single-chip microcomputer m16c family / m16c/tiny series
Hide thumbs Also See for M16C/26A Series:
Table of Contents

Advertisement

M
1
6
C
2 /
6
A
G
o r
u
p
(
M
1
6

17.3 Functions To Prevent Flash Memory from Rewriting

The flash memory has a built-in ROM code protect function for parallel I/O mode and a built-in ID code
check function for standard input/output mode to prevent the flash memory from reading or rewriting.

17.3.1 ROM Code Protect Function

The ROM code protect function disables reading or changing the contents of the on-chip flash memory in
parallel I/O mode. Figure 17.3.1.1 shows the ROMCP address. The ROMCP address is located in a user
ROM area.
To enable ROM code protect, set the ROMCP1 bit to "00
"111111
".
2
To cancel ROM code protect, erase the block including the the ROMCP address in CPU rewrite mode or
standard serial I/O mode.

17.3.2 ID Code Check Function

Use the ID code check function in standard serial input/output mode. Unless the flash memory is blank,
the ID codes sent from the programmer and the seven bytes 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 acknowledged. The ID code consists of 8-bit data, starting with the first byte, into addresses,
0FFFDF
, 0FFFE3
16
has a program with the ID code set in these addresses.
R
e
. v
2
0 .
0
F
e
b
1 .
, 5
2
0
0
7
R
E
J
0
9
B
0
2
0
2
0 -
2
0
0
C
2 /
6
, A
M
1
6
C
2 /
6
, B
M
1
6
, 0FFFEB
, 0FFFEF
16
16
page 235
f o
3
2
9
C
2 /
6
) T
", "01
2
, 0FFFF3
, 0FFFF7
16
16
17. Flash Memory Version
", or "10
" and set the bit 5 to bit 0 to
2
2
, and 0FFFFB
. The flash memory
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/26aM16c/26bM16c/26t

Table of Contents