|
M16C6N5 Datasheet, PDF (268/400 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/60 SERIES | |||
|
◁ |
Under development
This document is under development and its contents are subject to change.
M16C/6N Group (M16C/6N5)
21. Flash Memory Version
21.3.1 EW0 Mode
The microcomputer enters CPU rewrite mode by setting the FMR01 bit in the FMR0 register to â1â (CPU
rewrite mode enabled) and is ready to accept commands. EW0 mode is selected by setting the FMR11 bit
in the FMR1 register to â0â. To set the FMR01 bit to â1â, set to â1â after first writing â0â.
The software commands control programming and erasing. The FMR0 register or the status register
indicates whether a program or erase operation is completed as expected or not.
21.3.2 EW1 Mode
EW1 mode is selected by setting FMR11 bit to â1â (by writing â0â and then â1â in succession) after setting
the FMR01 bit to â1â (by writing â0â and then â1â in succession). (Both bits must be set to â0â first before
setting to â1â.)
The FMR0 register indicates whether or not a program or erase operation has been completed as
expected. The status register cannot be read in EW1 mode.
When an erase/program operation is initiated the CPU halts all program execution until the operation is
completed or erase-suspend is requested.
Rev.2.30 Oct 24, 2005 page 252 of 372
REJ09B0011-0230
|
▷ |