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

PIC18F4580-I/PT 参数 Datasheet PDF下载

PIC18F4580-I/PT图片预览
型号: PIC18F4580-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与ECAN技术, 10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with ECAN Technology, 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 490 页 / 8912 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4580-I/PT的Datasheet PDF文件第92页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第93页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第94页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第95页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第97页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第98页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第99页浏览型号PIC18F4580-I/PT的Datasheet PDF文件第100页  
PIC18F2480/2580/4480/4580  
mapped in the SFR space, but are not physically imple-  
mented. Reading or writing to a particular INDF register  
actually accesses its corresponding FSR register pair.  
A read from INDF1, for example, reads the data at the  
address indicated by FSR1H:FSR1L. Instructions that  
use the INDF registers as operands actually use the  
contents of their corresponding FSR as a pointer to the  
instruction’s target. The INDF operand is just a  
convenient way of using the pointer.  
6.4.3.1  
FSR Registers and the  
INDF Operand  
At the core of Indirect Addressing are three sets of  
registers: FSR0, FSR1 and FSR2. Each represents a  
pair of 8-bit registers, FSRnH and FSRnL. The four  
upper bits of the FSRnH register are not used, so each  
FSR pair holds a 12-bit value. This represents a value  
that can address the entire range of the data memory  
in a linear fashion. The FSR register pairs, then, serve  
as pointers to data memory locations.  
Because Indirect Addressing uses a full 12-bit address,  
data RAM banking is not necessary. Thus, the current  
contents of the BSR and the Access RAM bit have no  
effect on determining the target address.  
Indirect Addressing is accomplished with a set of  
Indirect File Operands, INDF0 through INDF2. These  
can be thought of as “virtual” registers: they are  
FIGURE 6-8:  
INDIRECT ADDRESSING  
000h  
Using an instruction with one of the  
Indirect Addressing registers as the  
operand....  
Bank 0  
Bank 1  
ADDWF, INDF1, 1  
100h  
200h  
300h  
Bank 2  
FSR1H:FSR1L  
...uses the 12-bit address stored in  
the FSR pair associated with that  
register....  
7
0
7
0
Bank 3  
through  
Bank 13  
x x x x 1 1 1 0  
1 1 0 0 1 1 0 0  
...to determine the data memory  
location to be used in that operation.  
E00h  
In this case, the FSR1 pair contains  
ECCh. This means the contents of  
location ECCh will be added to that  
of the W register and stored back in  
ECCh.  
Bank 14  
Bank 15  
F00h  
FFFh  
Data Memory  
DS39637D-page 96  
© 2009 Microchip Technology Inc.  
 复制成功!