
ML62Q1000 Series User's Manual
Chapter 25 Flash Memory
FEUL62Q1000
25-17
Figure 25-2 shows the flow diagram for programming the program memory space.
Figure 25-2 Flow Diagram for Programming Program Memory Space
[Note]
Ÿ
Only erase areas irrelevant to program processing. If erasing the area where program processing is in
progress, the LSI works incorrectly.
Ÿ
During the programming, the CPU stops the operation
for maximum 80 μs whereas peripheral circuits
continue operation. Therefore, clear the WDT counter accordingly.
Ÿ
For data programming setting, place two NOP instructions following the instruction used to set the
programming data in the FLASHD1 register.
FSELF = 1
Start programming
FLASHACP = 0xFA
FLASHACP = 0xF5
End
FLASHSEG = Segment address to be programmed
FLASHA = Address to be programmed
Enable flash programming
Flash acceptor setting
Flash address setting
Set the high-speed clock for the system clock through the
FCON register
System clock setting
FLASHD0 = Programming data
FLASHD1 = Programming data
__asm("NOP");
__asm("NOP");
Write data setting
Start flash memory write
The CPU stops. It automatically starts operation again when the write is
completed.
Continue programming?
YES
NO
FSELF = 0
Disable flash write
(1)
Verify
Содержание ML62Q1000 Series
Страница 17: ...Chapter 1 Overview...
Страница 112: ...Chapter 2 CPU and Memory Space...
Страница 154: ...Chapter 3 Reset Function...
Страница 166: ...Chapter 4 Power Management...
Страница 196: ...Chapter 5 Interrupts...
Страница 248: ...Chapter 6 Clock generation Circuit...
Страница 274: ...Chapter 7 Low Speed Time Base Counter...
Страница 291: ...Chapter 8 16 Bit Timer...
Страница 320: ...Chapter 9 Functional Timer FTM...
Страница 382: ...Chapter 10 Watchdog Timer...
Страница 402: ...Chapter 11 Serial Communication Unit...
Страница 456: ...Chapter 12 I2 C Bus Unit...
Страница 491: ...Chapter 13 I2 C Master...
Страница 512: ...Chapter 14 DMA Controller...
Страница 531: ...Chapter 15 Buzzer...
Страница 550: ...Chapter 16 Simplified RTC...
Страница 559: ...Chapter 17 GPIO...
Страница 594: ...Chapter 18 External Interrupt Function...
Страница 612: ...Chapter 19 CRC Generator...
Страница 632: ...Chapter 20 Analog Comparator...
Страница 644: ...Chapter 21 D A Converter...
Страница 655: ...Chapter 22 Voltage Level Supervisor...
Страница 676: ...Chapter 23 Successive Approximation Type A D Converter...
Страница 709: ...Chapter 24 Regulator...
Страница 714: ...Chapter 25 Flash Memory...
Страница 743: ...Chapter 26 Code Option...
Страница 750: ...Chapter 27 LCD Driver...
Страница 788: ...Chapter 28 On Chip Debug Function...
Страница 795: ...Chapter 29 Safety Function...
Страница 813: ...Appendix A...
Страница 881: ...Revision History...