|
M16C6S_09 Datasheet, PDF (170/208 Pages) Renesas Technology Corp – SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER | |||
|
◁ |
M16C/6S Group
Flash Memory Version
EW1 mode operation procedure
Program in ROM
Single-chip mode
Set CM0, CM1, and PM1 registers (Note 1)
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 2)
Execute software commands
Write â0â to the FMR01 bit
(CPU rewrite mode disabled)
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.
Figure 1.21.3. Setting and Resetting of EW1 Mode
Rev.5.01 Dec 10, 2009 page 170 of 201
REJ03B0014-0501
|
▷ |