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

MPC82G516AD 参数 Datasheet PDF下载

MPC82G516AD图片预览
型号: MPC82G516AD
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AD的Datasheet PDF文件第95页浏览型号MPC82G516AD的Datasheet PDF文件第96页浏览型号MPC82G516AD的Datasheet PDF文件第97页浏览型号MPC82G516AD的Datasheet PDF文件第98页浏览型号MPC82G516AD的Datasheet PDF文件第100页浏览型号MPC82G516AD的Datasheet PDF文件第101页浏览型号MPC82G516AD的Datasheet PDF文件第102页浏览型号MPC82G516AD的Datasheet PDF文件第103页  
20.2.2 Introduction to the ISP Modes  
The ISP modes are used in the loader program to program both the AP-memory and IAP-memory. And, they can  
also be used in user’s application program to program the IAP-memory. This section shows the flow chart and  
demo code for the various ISP modes.  
20.2.2.1 Flash Page Erase Mode  
Figure 20-2. Flow Chart for “Flash Page Erase”  
Start  
ISPEN=1 (enable ISP function),  
and initialize ISPCR[2:0]  
Refer to Table 20-2-1a  
to initialize ISPCR[2:0]  
IFMT=0x03 (select Page Erase Mode)  
th  
N means the N page.  
N=0  
N=N+1  
Page_address=0x0200*N  
IFADRH= High-byte of Page_address  
IFADRL= Low-byte of Page_address  
SCMD=0x46, then SCMD=0xB9  
(trigger ISP processing by sequential  
writing)  
NO  
End of page?  
YES  
End  
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  
;
MOV  
MOV  
SCMD,#46h  
SCMD,#0B9h  
;trigger ISP processing  
;
;Now, MCU will halt here until processing completed  
99  
MPC82G516A Data Sheet  
MEGAWIN