ML610Q111/ML610Q112 User’s Manual
Chapter 23 Data Flash Memory
FEUL610Q111
23-15
23.3.2
Block Erase Function
This function erases the flash memory data by block (4K bytes).
When writing “01H” to the flash self register (FLASHSLF), writing “0FAH” and “0F5H” to the flash acceptor
(FLASHACP), setting block addresses for the flash segment register (FLASHSEG) and the flash address register H
(FLASHAH), and then writing “1” to the flash control register (FLASHCON) FERS bit, data in the block (4Kbytes)
specified by FLASHSEG and FLASHAH is erased.
During the block erase, the CPU is stopped. When the erase is completed, the program is restarted from the instruction
following the one that set the FLASHCON FERS bit to “1”.
Figure 23-3 shows the block erase flow
Figure 23-3 Block Erase Flow
Program started
Write 0F5H to FLASHACP register
Erase
completed
Block erase completed
Write 01H to FLASHSLF register
Enable the flash memory rewrite function.
CPU waits until erase completes.
Y
N
Enable the successive write block erase
operation to acceptor. When the write code
mismatches, the block erase operation is
disabled.
Write 0FAH to FLASHACP register
Write 00H to FLASHAH register
Write 02H to FLASHSEG register
Set a block to be erased. By block: 4K bytes.
This LSI can erase 4K bytes of segment 2 only.
Write 00H to FLASHSLF register
Disable the flash memory rewrite function.
Write 01H to FLASHCON register
Start block erase instruction
Содержание ML610Q111
Страница 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Страница 14: ...Chapter 1 Overview ...
Страница 26: ...Chapter 2 CPU and Memory Space ...
Страница 34: ...Chapter 3 Reset Function ...
Страница 38: ...Chapter 4 MCU Control Function ...
Страница 53: ...Chapter 5 Interrupts INTs ...
Страница 81: ...Chapter 6 Clock Generation Circuit ...
Страница 95: ...Chapter 7 Time Base Counter ...
Страница 103: ...Chapter 8 Timers ...
Страница 145: ...Chapter 9 Watchdog Timer ...
Страница 153: ...Chapter 10 PWM ...
Страница 199: ...Chapter 11 Synchronous Serial Port ...
Страница 212: ...Chapter 12 UART ...
Страница 240: ...Chapter 13 I2 C Bus Interface Master ...
Страница 254: ...Chapter 14 I2 C Bus Interface Slave ...
Страница 269: ...Chapter 15 Port A ...
Страница 279: ...Chapter 16 Port B ...
Страница 291: ...Chapter 17 Port C ...
Страница 303: ...Chapter 18 Port D ...
Страница 312: ...Chapter 19 Port AB Interrupts ...
Страница 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Страница 335: ...Chapter 21 Voltage Level Supervisor ...
Страница 342: ...Chapter 22 Analog Comparator ...
Страница 353: ...Chapter 23 Data Flash Memory ...
Страница 373: ...Chapter 24 On chip Debug ...
Страница 375: ...Appendixes ...
Страница 393: ...Appendix E ...
Страница 398: ...Revision History ...