English
Language : 

M16C62P_06 Datasheet, PDF (288/421 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES
M16C/62P Group (M16C/62P, M16C/62PT)
22. Flash Memory Version
22.1.1 Boot Mode
The microcomputer enters boot mode when a hardware reset occurs while an “H” signal is applied to the
CNVSS and P5_0 pins and an “L” signal is applied to the P5_5 pin. A program in the boot ROM area is
executed.
In boot mode, the FMR05 bit in the FMR0 register selects access to the boot ROM area or the user ROM area.
The rewrite control program for standard serial I/O mode is stored in the boot ROM area before shipment.
The boot ROM area can be rewritten in parallel I/O mode only. If any rewrite control program using erase-write
mode (EW0 mode) is written in the boot ROM area, the flash memory can be rewritten according to the system
implemented.
22.2 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 I/O mode to prevent the flash memory from reading or rewriting.
22.2.1 ROM Code Protect Function
The ROM code protect function inhibits the flash memory from being read or rewritten during parallel input/
output mode. Figure 22.2 shows the ROMCP Register. The ROMCP register is located in the user ROM area.
The ROM code protect function is enabled when the ROMCR bits are set to other than “11b”. In this case, set
the bit 5 to bit 0 to “111111b”.
When exiting ROM code protect, erase the block including the ROMCP1 register by the CPU rewrite mode or
the standard serial I/O mode.
22.2.2 ID Code Check Function
Use the ID code check function in standard serial I/O mode. The ID code sent from the serial programmer is
compared with the ID code written in the flash memory for a match. If the ID codes do not match, commands
sent from the serial programmer are not accepted. However, if the four bytes of the reset vector are
“FFFFFFFFh”, ID codes are not compared, allowing all commands to be accepted.
The ID codes are 7-byte data stored consecutively, starting with the first byte, into addresses 0FFFDFh,
0FFFE3h, 0FFFEBh, 0FFFEFh, 0FFFF3h, 0FFFF7h, and 0FFFFBh. The flash memory must have a program
with the ID codes set in these addresses.
Rev.2.41 Jan 10, 2006 Page 273 of 390
REJ09B0185-0241