Renesas M16C/60 Series Hardware Manual page 280

Hide thumbs Also See for M16C/60 Series:
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N5 Group
EW0 mode operation procedure
Single-chip mode, memory expansion
mode, or boot mode
Set CM0, CM1, and PM1 registers (Note 1)
Transfer the rewrite control program to any area
other than the flash memory (Note 5)
Jump to the rewrite control program which has been
transferred to any area other than the flash memory
(The subsequent processing is executed by the
rewrite control program in any area other than the
flash memory.)
Note 1: Select 10 MHz or less for CPU clock using the CM0
register's CM06 bit and CM1 register's CM17 to
CM16 bits. Also, set the PM1 register's PM17 bit
to "1" (with wait state).
Note 2: To set the FMR01 bit to "1", write "0" and then "1"
in succession. Make sure no interrupts or no DMA
transfers will occur before writing "1" after writing "0".
Write to the FMR01 bit from a program in other
than the flash memory. Also write only when the
NMI pin is "H" level.
Note 3: Disables the CPU rewrite mode after executing
the Read Array command.
Note 4: User ROM area is accessed when the FMR05 bit
is set to "1".
Note 5: When in CPU rewrite mode, the PM10 and PM13
bits in the PM1 register are set to "1".
The rewrite control program can only be executed
in the internal RAM or in an external area that is
enabled for use when the PM13 bit = 1.
Figure 1.22.5 Setting and Resetting of EW0 Mode
Note 1: In EW1 mode, do not set the microcomputer in memory expansion or boot mode.
Note 2: Select 10 MHz or less for CPU clock using the CM0 register's CM06 bit and CM1 register's
Note 3: To set the FMR01 bit to "1", write "0" and then "1" in succession. Make sure no interrupts or
Figure 1.22.6 Setting and Resetting of EW1 Mode
Rev.1.00
2003.05.30
page 266
EW1 mode operation procedure
Program in ROM
Single-chip mode (Note 1)
Set CM0, CM1, and PM1 registers (Note 2)
Set the FMR01 bit by writing "0" and then "1"
(CPU rewrite mode enabled)
Set the FMR11 bit by writing "0" and then "1"
(EW1 mode) (Note 3)
Execute software commands
Write "0" to the FMR01 bit
(CPU rewrite mode disabled)
CM17 to CM16 bits. Also, set the PM1 register's PM17 bit to "1" (with wait state).
no DMA transfers will occur before writing "1" after writing "0".
Also write only when the NMI pin is "H" level.
Rewrite control program
For only boot mode
set the FMR05 bit to "1" (user ROM area access)
Set the FMR01 bit by writing "0" and then "1"
(CPU rewrite mode enabled) (Note 2)
Execute software commands
Execute the Read Array command
Write "0" to the FMR01 bit
(CPU rewrite mode disabled)
For only boot mode
Write "0" to the FMR05 bit (Boot ROM area accessed)
(Note 4)
Jump to a specified address in the flash memory
Flash Memory

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6n5

Table of Contents