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
Summary of Contents for ML610Q111
Page 1: ...ML610Q111 ML610Q112 User s Manual Issue Date Nov 16 2016 FEUL610Q111 05 ...
Page 14: ...Chapter 1 Overview ...
Page 26: ...Chapter 2 CPU and Memory Space ...
Page 34: ...Chapter 3 Reset Function ...
Page 38: ...Chapter 4 MCU Control Function ...
Page 53: ...Chapter 5 Interrupts INTs ...
Page 81: ...Chapter 6 Clock Generation Circuit ...
Page 95: ...Chapter 7 Time Base Counter ...
Page 103: ...Chapter 8 Timers ...
Page 145: ...Chapter 9 Watchdog Timer ...
Page 153: ...Chapter 10 PWM ...
Page 199: ...Chapter 11 Synchronous Serial Port ...
Page 212: ...Chapter 12 UART ...
Page 240: ...Chapter 13 I2 C Bus Interface Master ...
Page 254: ...Chapter 14 I2 C Bus Interface Slave ...
Page 269: ...Chapter 15 Port A ...
Page 279: ...Chapter 16 Port B ...
Page 291: ...Chapter 17 Port C ...
Page 303: ...Chapter 18 Port D ...
Page 312: ...Chapter 19 Port AB Interrupts ...
Page 317: ...Chapter 20 Successive Approximation Type A D Converter ...
Page 335: ...Chapter 21 Voltage Level Supervisor ...
Page 342: ...Chapter 22 Analog Comparator ...
Page 353: ...Chapter 23 Data Flash Memory ...
Page 373: ...Chapter 24 On chip Debug ...
Page 375: ...Appendixes ...
Page 393: ...Appendix E ...
Page 398: ...Revision History ...