XC886/888CLM
Flash Memory
User’s Manual
4-15
V1.3, 2010-02
Flash Memory, V 1.0
4.8
In-Application Programming
In some applications, the Flash contents may need to be modified during program
execution. In-Application Programming (IAP) is supported so that users can program or
erase the Flash memory from their Flash user program by calling some subroutines in
the Boot ROM (see
). The Flash subroutines will first perform some checks
and an initialization sequence before starting the program or erase operation. Following
this, the user program can continue execution while background programming or erasing
is taking place until the occurrence of a Flash NMI event to indicate the completion of the
program or erase operation. A manual check on the Flash data is necessary to
determine if the programming or erasing was successful via using the ‘MOVC’ instruction
to read out the Flash contents. Other special subroutines include aborting the Flash
erase operation and checking the Flash bank ready-to-read status.
Note: The Flash bank, where the Flash user program is executing from, cannot be
targeted for any erase and program operation. For example, user program in P
Flash Bank Pair 0 Sector 0 cannot program or erase other sectors of P-Flash Bank
Pair 0.
Figure 4-9
Flash Program/Erase Flow
Note: While programming or erasing P-Flash Bank Pair 0 (where interrupt vectors are
located), the Flash NMI should be disabled and polling used instead.
special Flash
program/erase
subroutines
user program
RETI instruction
0073
H
Flash NMI
service routine
Flash NMI
Boot ROM
*
Содержание XC886CLM
Страница 1: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 3: ...User s Manual V1 3 2010 02 Microcontrollers 8 Bit XC886 888CLM 8 Bit Single Chip Microcontroller...
Страница 324: ...XC886 888CLM Serial Interfaces User s Manual 12 52 V1 3 2010 02 Serial Interfaces V 1 0...
Страница 663: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG...