欢迎访问ic37.com |
会员登录 免费注册
发布采购

MPC82G516AD 参数 Datasheet PDF下载

MPC82G516AD图片预览
型号: MPC82G516AD
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AD的Datasheet PDF文件第104页浏览型号MPC82G516AD的Datasheet PDF文件第105页浏览型号MPC82G516AD的Datasheet PDF文件第106页浏览型号MPC82G516AD的Datasheet PDF文件第107页浏览型号MPC82G516AD的Datasheet PDF文件第109页浏览型号MPC82G516AD的Datasheet PDF文件第110页浏览型号MPC82G516AD的Datasheet PDF文件第111页浏览型号MPC82G516AD的Datasheet PDF文件第112页  
20.3.2 Demo Code for IAP  
As mentioned above, all the ISP modes can also be applied to the IAP operation. The demo codes for these  
modes are shown below.  
Demo code for triggering the “Page Erase Mode”  
MOV  
ISPCR,#10000011b ;ISPCR.7=1, enable ISP  
;ISPCR[2:0]=011, suppose MPC82-series running @11.0592MHz  
MOV  
IFMT,#03h  
;select Page Erase Mode  
MOV  
MOV  
IFADRH,??  
IFADRL,??  
;fill [IFADRH,IFADRL] with page address  
;! the page address must be within the IAP-memory  
MOV  
MOV  
SCMD,#46h  
SCMD,#0B9h  
;trigger ISP processing  
;
;Now, MCU will halt here until processing completed  
Demo code for triggering the “Program Mode”  
MOV  
ISPCR,#10000011b ;ISPCR.7=1, enable ISP  
;ISPCR[2:0]=011, suppose MPC82-series running @11.0592MHz  
MOV  
IFMT,#02h  
;select Program Mode  
MOV  
MOV  
MOV  
IFADRH,??  
IFADRL,??  
IFD,??  
;fill [IFADRH,IFADRL] with byte address  
;! the byte address must be within the IAP-memory  
;fill IFD with the data to be programmed  
MOV  
MOV  
SCMD,#46h  
SCMD,#0B9h  
;trigger ISP processing  
;
;Now, MCU will halt here until processing completed  
Demo code for triggering the “Read Mode”  
MOV  
ISPCR,#10000011b ;ISPCR.7=1, enable ISP  
;ISPCR[2:0]=011, suppose MPC82-series running @11.0592MHz  
MOV  
IFMT,#01h  
;select Read Mode  
MOV  
MOV  
IFADRH,??  
IFADRL,??  
;fill [IFADRH,IFADRL] with byte address  
;! the byte address must be within the IAP-memory  
MOV  
MOV  
SCMD,#46h  
SCMD,#0B9h  
;trigger ISP processing  
;
;Now, MCU will halt here until processing completed  
MOV  
...  
...  
A,IFD  
;now, the read data exists in IFD  
MEGAWIN  
MPC82G516A Data Sheet  
108  
 
 复制成功!