Figure 28-5. Demo Code for ISP/IAP Byte Program
MOV
ISPCR, #10000011b
MOV
IFMT, #02h
MOV
IFADRH, ??
MOV
IFADRL, ??
MOV
IFD, ??
MOV
SCMD, #46h
MOV
SCMD, #0B9h
; Now, MCU will halt here until processing completed
MOV
IFMT, #00h
MOV
ISPCR, #00000000b
; ISPCR.7=1, enable ISP
; select Program Mode
; fill [IFADRH,IFADRL] with byte addres
;
; fill IFD with the data to be programmed
; trigger ISP/IAP processing
;
; select Standby Mode
; ISPCR.7 = 0, disable ISP
Rev0.1 | 302/347
CMT2380F17
www.cmostek.com
Need help?
Do you have a question about the CMT2380F17 and is the answer not in the manual?
Questions and answers