Renesas M16C/62P Hardware Manual page 367

Renesas 16-bit single-chip microcomputer
Hide thumbs Also See for M16C/62P:
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
24.14 Flash Memory Version
24.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 register 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 microcomputer, these addresses are allocated to the vector addresses (H)
of fixed vectors.
24.14.2 Stop mode
When shifting to stop mode, the following settings are required:
• Set the FMR01 bit to "0" (CPU rewrite mode disabled) and disable DMA transfers before setting the
CM10 bit to "1" (stop mode).
• Execute the JMP.B instruction subsequent to the instruction which sets the CM10 bit to "1" (stop mode)
Example program
24.14.3 Wait mode
When shifting to wait mode, set the FMR01 bit to "0" (CPU rewrite mode disabled) before executing the
WAIT instruction.
24.14.4 Low power dissipation mode, on-chip oscillator 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
• Erase all unlocked blocks
• Lock bit program
24.14.5 Writing command and data
Write the command code and data at even addresses.
24.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.
R
e
. v
2
3 .
0
S
e
p
0
, 1
2
0
0
4
R
E
J
0
9
B
0
1
8
5
0 -
2
3
0
Z
BSET
0, CM1
JMP.B
L1
L1:
Program after returning from stop mode
page 353
f o
3
6
4
; Stop mode
24. Usage Precaution

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pt

Table of Contents