|
M306H7MG-XXXFP Datasheet, PDF (288/329 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER with DATA ACQUISITION CONTROLLER | |||
|
◁ |
M306H7MG-XXXFP/MC-XXXFP/FGFP
17. FLASH MEMORY VERSION
EW0 mode operation procedure
Single-chip mode, or boot mode
Rewrite control program
For only boot mode
set the FMR05 bit to â1â (user ROM area access)
Set CM0, CM1, and PM1 registers (Note 1)
Set the FMR01 bit by writing â0â and then â1â
(CPU rewrite mode enabled) (Note 2)
Transfer a 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)
Execute software commands
Execute the Read Array command (Note 3)
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
Note 1: Select 10 MHz or less for CPU clock using the CM0 registerâs CM06 bit and CM1 registerâs CM17 to 6
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, bit 0 and bit 3 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 17.5 Setting and Resetting of EW0 Mode
Rev.2.10 Oct 25, 2006 Page 288 of 326
REJ03B0152-0210
|
▷ |