CMT2380F17
Rev0.1 | 307/347
www.cmostek.com
28.4.3
Notes for IAP
Interrupts during IAP
After triggering the ISP/IAP flash processing for In-Application Programming, the MCU will halt for a while
for internal IAP processing until the processing is completed. At this time, the interrupt will queue up for
being serviced if the interrupt is enabled previously. Once the processing is completed, the MCU
continues running and the interrupts in the queue will be serviced immediately if the interrupt flag is still
active. Users, however, should be aware of the following:
(1) Any interrupt can not be in-time serviced during the MCU halts for IAP processing.
(2) The low/high-level triggered external interrupts, nINTx, should keep activated until the IAP is
completed, or they will be neglected.
IAP and Idle mode
MG82F6D17 does not make use of idle-mode to perform IAP function. Instead, it freezes CPU running to
release the flash memory for ISP/IAP engine operating. Once ISP/IAP operation finished, CPU will be
resumed and advanced to the instruction which follows the previous instruction that invokes ISP/AP
activity.
Accessing Destination of IAP
As mentioned previously, the IAP is used to program only the IAP-memory. Once the accessing
destination is not within the IAP-memory, the hardware will automatically neglect the triggering of IAP
processing. That is the triggering of IAP is invalid and the hardware does nothing.
An Alternative Method to Read IAP Data
To read the Flash data in the IAP-memory, in addition to using the Flash Read Mode, the alternative
method is using the instruction “MOVC A,@A+DPTR”. Where, DPTR and ACC are filled with the wanted
address and the offset, respectively. And, the accessing destination must be within the IAP-memory, or
the read data will be indeterm
inate. Note that using ‘MOVC’ instruction is much faster than using the
Flash Read Mode.
Flash Endurance for IAP
The endurance of the embedded Flash is 20,000 erase/write cycles, that is to say, the erase-then-write
cycles shouldn’t exceed 20,000 times. Thus the user should pay attention to it in the application which
needs to frequently update the IAP-memory.s
28.5
ISP/IAP Register
The following special function registers are related to the access of ISP, IAP and Page-P SFR:
IFD
:
ISP/IAP Flash Data Register
SFR Page
= 0~F
SFR Address = 0xE2
Bit
7
6
5
4
3
2
1
0
Name
IFD[7:0]
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
1
1
1
1
1
1
1
1
Содержание CMT2380F17
Страница 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Страница 111: ...CMT2380F17 Rev0 1 111 347 www cmostek com INT2IS 1 0 Selected Port Pin of nINT2 00 P4 4 01 P3 0 10 P1 1 11 P1 6...
Страница 131: ...CMT2380F17 Rev0 1 131 347 www cmostek com Figure 16 1 Timer 0 Mode 0 Structure Figure15 2 Timer 1 Mode 0 Structure...
Страница 161: ...CMT2380F17 Rev0 1 161 347 www cmostek com Figure 16 32 Split Timer 3 Mode 1 Structure AR with Ex INT...
Страница 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Страница 239: ...CMT2380F17 Rev0 1 239 347 www cmostek com Figure 19 5 8 bit Timer Mode Configuration for S1BRG S1TME 1...
Страница 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...
Страница 289: ...CMT2380F17 Rev0 1 289 347 www cmostek com...