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

MPC82G516AD 参数 Datasheet PDF下载

MPC82G516AD图片预览
型号: MPC82G516AD
PDF下载: 下载PDF文件 查看货源
内容描述: 8位微控制器 [8-bit microcontroller]
分类和应用: 微控制器
文件页数/大小: 144 页 / 1527 K
品牌: MEGAWIN [ MEGAWIN TECHNOLOGY CO., LTD ]
 浏览型号MPC82G516AD的Datasheet PDF文件第31页浏览型号MPC82G516AD的Datasheet PDF文件第32页浏览型号MPC82G516AD的Datasheet PDF文件第33页浏览型号MPC82G516AD的Datasheet PDF文件第34页浏览型号MPC82G516AD的Datasheet PDF文件第36页浏览型号MPC82G516AD的Datasheet PDF文件第37页浏览型号MPC82G516AD的Datasheet PDF文件第38页浏览型号MPC82G516AD的Datasheet PDF文件第39页  
9 Dual Data Pointer Register (DPTR)  
The additional data pointer can be used to speed up code execution and reduce code size. The dual DPTR  
structure is a way by which the chip will specify the address of an external data memory location. There are two  
16-bit DPTR registers that address the external memory, and a single control bit called DPS (AUXR1.0) that  
allows the program code to switch between the external memory.  
Figure 9-1. Use of Dual DPTR  
(83h)  
DPH  
(82h)  
DPL  
DPS=0  
DPS=1  
DPTR0  
DPTR1  
DPH  
DPL  
Selected by  
External Data Memory  
DPS  
DPTR Instructions  
The six instructions that refer to DPTR currently selected using the DPS bit are as follows:  
INC DPTR  
;Increments the data pointer by 1  
MOV DPTR,#data16 ;Loads the DPTR with a 16-bit constant  
MOVC A,@A+DPTR  
MOVX A,@DPTR  
MOVX @DPTR,A  
JMP @A+DPTR  
;Move code byte relative to DPTR to ACC  
;Move external RAM (16-bit address) to ACC  
;Move ACC to external RAM (16-bit address)  
;Jump indirect relative to DPTR  
AUXR1 (Address=8EH, Auxiliary Register1, Reset Value=0000,0000B)  
7
6
5
4
3
2
1
0
P4KB  
P4PCA  
P4SPI  
P4S2  
GF2  
-
-
DPS  
DPS: DPTR select bit, used to switch between DPTR0 and DPTR1.  
The DPS bit status should be saved by software when switching between DPTR0 and DPTR1.  
DPS  
0
1
DPTR selected  
DPTR0  
DPTR1  
35  
MPC82G516A Data Sheet  
MEGAWIN  
 
 复制成功!