CMT2380F17
Rev0.1 | 300/347
www.cmostek.com
Define ISP/IAP
time base
Enable ISP/IAP
engine
Define targeted
flash page address
Trigger engine for
"Erase"
Set "Page Erase"
Mode
end of page
NO
YES
Set Standby and
disable engine
==> Configure CKCON1.XCKS5~0
==> Set ISPCR.ISPEN = "1"
==> Define IFADRH & IFADRL
==> Write IFMT.MS2~0 = "000"
==> Set ISPCR.ISPEN = "1"
==> Write IFMT.MS2~0 = "011"
==> Write SCMD = 0x46, then
==> Write SCMD = 0xB9
Start
End
Figure 28-2. ISP/IAP Page Erase Flow
Figure 28-3. Demo Code for ISP/IAP Page Erase
MOV ISPCR, #10000000b ; ISPCR.7 = 1, enable ISP
MOV IFMT, #03h ; select Page Erase Mode
MOV IFADRH, ?? ; fill [IFADRH,IFADRL] with page address
MOV IFADRL, ?? ;
MOV SCMD, #46h ; trigger ISP/IAPprocessing
MOV SCMD, #0B9h ;
; Now, MCU will halt here until processing completed
MOV IFMT, #00h ; select Standby Mode
MOV ISPCR, #00000000b ; ISPCR.7 = 0, disable ISP
Summary of Contents for CMT2380F17
Page 27: ...CMT2380F17 Rev0 1 27 347 www cmostek com 1 25 Phase Noise...
Page 177: ...CMT2380F17 Rev0 1 177 347 www cmostek com Figure 17 3 PCA Interrupt System...
Page 246: ...CMT2380F17 Rev0 1 246 347 www cmostek com SnMIPS S0MI S1MI 1 P3 3 P4 7...