
ML62Q1000 Series User's Manual
Chapter 25 Flash Memory
FEUL62Q1000
25-19
Figure 25-4 shows the flow diagram for programming the data flash area.
Figure 25-4 Flow Diagram for Programming Data Flash Area
[Note]
Ÿ
The CPU continues program processing even while data flash programming is in progress. Do not enter
the STOP mode, STOP-D mode or HALT-H mode during the programming. In addition, set the FSELF bit
of the FLASHSLF register to "0" (erase/program disabled) after the programming ended.
Ÿ
The data flash area is unreadable during programming.
Ÿ
For data programming setting, place two NOP instructions following the instruction used to set the
programming data in the FLASHD0L register.
FSELF = 1
Start data flash programming
FLASHACP = 0xFA
FLASHACP = 0xF5
End
FLASHSEG = 0x1F
FLASHAR = Address to be erased
Enable programming flash
Flash acceptor setting
Flash address setting
Set the high-speed clock for the system clock through the
FCON register
If using interrupts, execute MCINTEL.2=1, IE2.2=1, and EI.
System clock setting
Interrupt setting, EI
FLASHD0L = Write data
__asm(
"
NOP
"
);
__asm("NOP");
Write data setting
Start programming in background
Continue
Programming?
YES
NO
(2)
FLASHSTA=0x00?
YES
NO
Confirm the data flash state
FSELF = 0
Disable flash write
Verify
End programming data flash
FLASHSTA=0x00?
YES
NO
Confirm the data flash state
End
Go to (4)
Interrupt wait
Go to (4)
When interrupt used
When interrupt not used
See Chapter 5 "Interrupts" and
Sections 29.2.7 to 2.9 in Chapter 29
"Safety Function" for using
interrupts.
Using MCISTATL
confirm interrupt source
Using MCISTATL
clear interrupt source
MCINTEL:MCU status interrupt enable register
MCISTATL:MCU status interrupt register
MCINTCL: MCU status interrupt clear register
IE2: Interrupt enable register 2
Содержание 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...