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

PIC18F4520-I/ML 参数 Datasheet PDF下载

PIC18F4520-I/ML图片预览
型号: PIC18F4520-I/ML
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器与10位A / D和纳瓦技术 [28/40/44-Pin Enhanced Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路时钟
文件页数/大小: 412 页 / 6898 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4520-I/ML的Datasheet PDF文件第308页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第309页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第310页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第311页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第313页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第314页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第315页浏览型号PIC18F4520-I/ML的Datasheet PDF文件第316页  
PIC18F2420/2520/4420/4520  
24.2.2  
EXTENDED INSTRUCTION SET  
ADDFSR  
Add Literal to FSR  
ADDULNK  
Add Literal to FSR2 and Return  
Syntax:  
ADDFSR f, k  
Syntax:  
ADDULNK k  
Operands:  
0 k 63  
f [ 0, 1, 2 ]  
FSR(f) + k FSR(f)  
None  
Operands:  
Operation:  
0 k 63  
FSR2 + k FSR2,  
(TOS) PC  
None  
Operation:  
Status Affected:  
Encoding:  
Status Affected:  
Encoding:  
1110  
1000  
ffkk  
kkkk  
1110  
1000  
11kk  
kkkk  
Description:  
The 6-bit literal ‘k’ is added to the  
contents of the FSR specified by ‘f’.  
Description:  
The 6-bit literal ‘k’ is added to the  
contents of FSR2. A RETURNis then  
executed by loading the PC with the  
TOS.  
Words:  
1
1
Cycles:  
The instruction takes two cycles to  
execute; a NOPis performed during  
the second cycle.  
This may be thought of as a special  
case of the ADDFSRinstruction,  
where f = 3 (binary ‘11’); it operates  
only on FSR2.  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Decode  
Read  
literal ‘k’  
Process  
Data  
Write to  
FSR  
ADDFSR 2, 23h  
Example:  
Words:  
Cycles:  
1
2
Before Instruction  
FSR2  
After Instruction  
FSR2  
=
03FFh  
0422h  
Q Cycle Activity:  
Q1  
=
Q2  
Q3  
Q4  
Decode  
Read  
literal ‘k’  
Process  
Data  
Write to  
FSR  
No  
No  
No  
No  
Operation  
Operation  
Operation  
Operation  
ADDULNK 23h  
Example:  
Before Instruction  
FSR2  
PC  
=
=
03FFh  
0100h  
After Instruction  
FSR2  
PC  
=
=
0422h  
(TOS)  
Note:  
All PIC18 instructions may take an optional label argument preceding the instruction mnemonic for use in  
symbolic addressing. If a label is used, the instruction syntax then becomes: {label} instruction argument(s).  
DS39631E-page 310  
© 2008 Microchip Technology Inc.  
 复制成功!