|
M16C30P_07 Datasheet, PDF (218/317 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/30 SERIES | |||
|
◁ |
M16C/30P Group
19. Flash Memory Version
19.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.
19.3.2 EW1 Mode
EW1 mode is selected by setting the FMR11 bit to â1â after the FMR01 bit is set to â1â. (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.
19.3.3 Flash Memory Control Register (FMR0 and FMR1 registers)
Figure 19.4 to Figure 19.5 show the FMR0 and FMR1 Registers.
Rev.1.22 Mar 29, 2007 Page 202 of 291
REJ09B0179-0122
|
▷ |