English
Language : 

M16C30P_07 Datasheet, PDF (300/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES
M16C/30P Group
22. Usage Precaution
22.14 Flash Memory Version
22.14.1 Functions to Inhibit Rewriting Flash Memory Rewrite
ID codes are stored in addresses 0FFFDFh, 0FFFE3h, 0FFFEBh, 0FFFEFh, 0FFFF3h, 0FFFF7h, and
0FFFFBh. If wrong data are written to theses addresses, the flash memory cannot be read or written in standard
serial I/O mode.
The ROMCP address is mapped in address 0FFFFFh. If wrong data is written to this address, the flash memory
cannot be read or written in parallel I/O mode.
In the flash memory version of MCU, these addresses are allocated to the vector addresses (H) of fixed vectors.
22.14.2 Stop mode
When the MCU enters stop mode, execute the instruction which sets the CM10 bit to “1” (stop mode) after
setting the FMR01 bit to “0” (CPU rewrite mode disabled) and disabling the DMA transfer.
22.14.3 Wait mode
When shifting to wait mode, set the FMR01 bit to “0” (CPU rewrite mode disabled) before executing the WAIT
instruction.
22.14.4 Low power dissipation mode
If the CM05 bit is set to “1” (main clock stop), the following commands must not be executed.
• Program
• Block erase
• Lock bit program
• Read Lock bit Status
22.14.5 Writing command and data
Write the command code and data at even addresses.
22.14.6 Program Command
Write “xx40h” in the first bus cycle and write data to the write address in the second bus cycle, and an auto
program operation (data program and verify) will start. Make sure the address value specified in the first bus
cycle is the same even address as the write address specified in the second bus cycle.
22.14.7 Lock Bit Program Command
Write “77h” in the first bus cycle and write “xxD0h” to the uppermost address of a block (even address,
however) in the second bus cycle, and the lock bit for the specified block is cleared to “0”. Make sure then
address value specified in the first bus cycle is the same uppermost block address that is specified in the second
bus cycle.
Rev.1.22 Mar 29, 2007 Page 284 of 291
REJ09B0179-0122