
ML62Q1000 Series User's Manual
Chapter 25 Flash Memory
FEUL62Q1000
25-15
25.3 Self-programming
The self-programming is the function to program (erase and program) the program memory space and data flash area
using special function registers (SFRs).
Table 25-3 shows the self-programming specifications for each of the program memory space and data flash area.
Table 25-3 Self-programming of Program Memory Space and Data Flash Area
Program memory space
ML62Q1300 group: Segment 0
ML62Q1500/1700 group: Segment 0 to 3
Data flash area
(segment 31)
Programming
unit
Erase block
16 Kbyte
ML62Q1300 group: 2 Kbyte
ML62Q1500/1700 group: 4 Kbyte
Erase sector
1 Kbyte
128 byte
Program
4 byte
1 byte
CPU operation during
block/sector erase or
program
Stop program processing (after completion
of erase/program, resume program
processing)
Continue program processing through the
background operation (BGO) function
Confirmation of end of
block/sector erase or
program
Confirmation not required (as program run
is stopped during erase/program)
Confirmation can be made through
FLASHSTA register
Target area where
block/sector erase has been
applied
Every bit becomes "1" (the bit written with "0" by writing becomes "0" from "1")
Note on data programming
Erase the area to be reprogrammed (data programmed without erasing is unguaranteed)
Function to prevent
unintended erase/program
Flash self-register (FLASHSLF) and flash acceptor (FLASHACP) incorporated (*1)
Flash memory erase/program
Supported only when system clock is HSCLK (*2)
Note on user program
programming
Before programming the user program,
prepare a program for self-programming in
the program code area which is not
erased/reprogrammed
-
Remapping function
User program update, etc. can be
performed by simultaneously using
remapping function
-
*1: After the programming is enabled by the FLASHSLF register, if "0xFA" and "0xF5" are written to the flash
acceptor (FLASHACP), block/sector erase or reprogram is enabled only once.
*2: See Chapter 6 "Clock Generation Circuit" for enabling oscillation of the high-speed oscillation circuit and
switching the system clock.
25.3.1 Notes on Debugging Self-programming Code
When debugging the area within the scope of program for self-programming (from setting the flash acceptor to writing
the flash data register) using U16 development environment (DTU8 debugger), use the debugger observing the
precautions described in Table 25-4.
Table 25-4 Notes on Debugging Self-programming
Limited
function
Notes
Breakpoint
setting
Do not perform the real time execution with break points set in the scope of program for
self-programming (from setting the flash acceptor to setting the flash data register).
Otherwise, the flash memory may not be reprogrammed if break points occur within the scope of
program for self-programming.
Step
execution
Do not perform the step execution within the scope of program for self-programming.
Otherwise, the flash memory may not be reprogrammed if the step execution is performed within the
scope of program for self-programming.
Содержание 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...