Renesas M16C/6NK Technical Information Seite 289

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 412
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 288
Rev.2.10 Apr 14, 2006 page 265 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 21. Flash Memory Version
21.3.1 EW0 Mode
The MCU 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.
Seitenansicht 288
1 2 ... 284 285 286 287 288 289 290 291 292 293 294 ... 411 412

Kommentare zu diesen Handbüchern

Keine Kommentare