Ew0 Mode; Ew1 Mode - Renesas M16C FAMILY Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for M16C FAMILY:
Table of Contents

Advertisement

Under development
Preliminary specification
Specifications in this manual are tentative and subject to change.
R8C/11 Group

17.4.1 EW0 Mode

The microcomputer is placed in CPU rewrite mode by setting the FMR01 bit in the FMR0 register to "1"
(CPU rewrite mode enabled), ready to accept commands. In this case, because the FMR1 register's
FMR11 bit = 0, EW0 mode is selected.
Use software commands to control program and erase operations. Read the FMR0 register or status
register to check the status of program or erase operation at completion.
When moving to an erase-suspend, set the FMR40 bit to "1" (erase-suspend enabled ) and the
FMR41 bit to "1" (suspend requested). Wait for td(SR-ES) and make sure that the FMR46 bit is set to
"1" (auto-erase inactive) before accessing the user ROM space. The erase operation resumes by
setting the FMR41 bit to "0" (erase restart).

17.4.2 EW1 Mode

EW1 mode is selected by setting FMR11 bit to "1" (EW1 mode) after setting the FMR01 bit to "1" (CPU
rewrite mode enabled).
Read the FMR0 register to check the status of program or erase operation at completion. Avoid ex-
ecuting software commands of Read Status register in EW1 mode.
To enable the erase-suspend function, the Block Erase command should be executed after setting the
FMR40 bit to "1" (erase-suspend enabled). An interrupt to request an erase-suspend must be in en-
abled state. Once being placed in an erase-suspend upon td(SR-ES) from the interrupt request,the
interrupt request is generated.
When an interrupt request is generated, FMR41 bit is automatically set to "1" (suspend requested)
and the auto-erase operation is halted. If the auto-erase operation is not completed (FMR00 bit is "0")
when the interrupt routine is ended, the Block Erase command should be executed again by setting
the FMR41 bit to "0" (erase restart).
Rev.0.91
2003 Sep 08
page 152 of 184
17.4 CPU Rewrite Mode
17.4 CPU Rewrite Mode

Advertisement

Table of Contents
loading

This manual is also suitable for:

R8c seriesTiny series

Table of Contents