Renesas M16C/29 Series Hardware Manual page 463

16-bit single-chip microcomputer
Hide thumbs Also See for M16C/29 Series:
Table of Contents

Advertisement

M16C/29 Group
1.14 Precautions for Flash Memory Version
1.14.1 Precautions for Functions to Inhibit Rewriting Flash Memory Rewrite
ID codes are stored in addresses 0FFFDF
and 0FFFFB
. If wrong data are written to theses addresses, the flash memory cannot be read or written
16
in standard serial I/O mode.
The ROMCP register is mapped in address 0FFFFF
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.
1.14.2 Precautions for 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
1.14.3 Precautions for Wait mode
When shifting to wait mode, set the FMR01 bit to "0" (CPU rewrite mode diabled) before executing the
WAIT instruction.
1.14.4 Precautions for 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
1.14.5 Writing command and data
Write the command code and data at even addresses.
1.14.6 Precautions for Program Command
Write 'xx40
' in the first bus cycle and write data to the write address in the second bus cycle, and an
16
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.
Rev.1.00 Nov 01,2004
REJXXXXXXX-0100Z
BSET
0, CM1
JMP.B
L1
L1:
Program after returning from stop mode
page 29 of 31
, 0FFFE3
, 0FFFEB
16
16
. If wrong data is written to this address, the flash
16
; Stop mode
, 0FFFEF
, 0FFFF3
16
16
, 0FFFF7
,
16
16

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c seriesM16c/tiny series

Table of Contents