Renesas M16C/6NK Hardware Manual page 287

16-bit single-chip microcomputer m16c family / m16c/60 series
Table of Contents

Advertisement

Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6NK, M16C/6NM)
Procedure to enter EW0 mode
Single-chip mode, memory expansion mode
Transfer the rewrite control program in CPU rewrite
mode to a space other than the flash memory
Set CM0, CM1, and PM1 registers
Jump to the rewrite control program transferred to
a space other than the flash memory.
(In the following steps, use the rewrite control
program in a space other than the flash memory.)
NOTES:
1.In CPU rewrite mode, set the CM06 bit in the CM0 register and CM17 to CM16 bits in the CM1 register to CPU
clock frequency of 10 MHz or less. Set the PM17 bit in the PM1 register to "1" (with wait state).
2.Set the FMR01 bit to "1" immediately after setting it to "0". Do not generate an interrupts or DMA transfer between
setting the bit to "0" and setting it to "1".
Set the bit to "0" if setting to "0". Set this bit in a space other than the flash memory while the NMI pin is held "H".
3.Exit CPU rewrite mode after executing the read array command.
4.When CPU rewrite mode is exited while the FMR05 bit is set to "1", the user ROM area can be accessed.
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.
6.Not available the memory expansion mode in T/V-ver..
Figure 21.5 Setting and Resetting of EW0 Mode
NOTES:
1.In EW1 mode, do not enter the memory expansion mode or boot mode.
* Not availabie memory expansion mode in T/V-ver..
2.In CPU rewrite mode, set the CM06 bit in the CM0 register and the CM17 to CM16 bits in the CM1 register to
CPU clock frequency of 10.0 MHz or less. Set the PM17 bit in the PM1 register to "1" (with wait state).
3.Set the FMR01 bit to "1" immediately after setting it to "0". Do not generate an interrupt or a DMA transfer
between setting the bit to "0" and setting it to "1".
Set the FMR11 bit to "1" immediately after setting it to "0" while the FMR01 bit is set to "1".
Do not generate an interrupt or a DMA transfer between setting the FMR11 bit to "0" and setting it to "1".
Set the FMR01 and FMR11 bits while "H" is applied to the NMI pin.
Figure 21.6 Setting and Resetting of EW1 Mode
Rev.2.00
Nov 28, 2005
REJ09B0124-0200
or boot mode
(5)
(1)
Procedure to enter EW1 mode
Set CM0, CM1, and PM1 registers
Set the FMR01 bit to "1" (CPU rewrite mode
enabled) after writing "0"
Set the FMR11 bit to "1" (EW1 mode) after
writing "0" (EW1 mode)
Execute the software commands
Set the FMR01 bit to "0"
(CPU rewrite mode disabled)
page 269 of 378
Rewrite control program
(6)
In boot mode only
set the FMR05 bit to "1" (user ROM area access)
Set the FMR01 bit to "1" (CPU rewrite mode
enabled) after writing "0"
Execute software commands
Execute the read array command
Set the FMR01 bit to "0"
(CPU rewrite mode disabled)
In boot mode only
Set the FMR05 bit to "0" (Boot ROM area
(4)
accessed)
Jump to a desired address in the flash memory
Program in the ROM
(1)
Single-chip mode
(2)
(3)
21. Flash Memory Version
(2)
(3)

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/6nm

Table of Contents