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

PIC18F2450-I/SO 参数 Datasheet PDF下载

PIC18F2450-I/SO图片预览
型号: PIC18F2450-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚,高性能, 12 MIPS ,增强型闪存, USB微控制器采用纳瓦技术 [28/40/44-Pin, High-Performance, 12 MIPS, Enhanced Flash, USB Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 320 页 / 5591 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F2450-I/SO的Datasheet PDF文件第253页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第254页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第255页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第256页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第258页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第259页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第260页浏览型号PIC18F2450-I/SO的Datasheet PDF文件第261页  
PIC18F2450/4450  
CALLW  
Subroutine Call Using WREG  
MOVSF  
Move Indexed to f  
Syntax:  
CALLW  
None  
Syntax:  
MOVSF [z ], f  
s
d
Operands:  
Operation:  
Operands:  
0 z 127  
s
0 f 4095  
d
(PC + 2) TOS,  
(W) PCL,  
Operation:  
((FSR2) + z ) f  
s
d
(PCLATH) PCH,  
(PCLATU) PCU  
Status Affected:  
None  
Encoding:  
1st word (source)  
2nd word (destin.)  
Status Affected:  
Encoding:  
None  
1110  
1111  
1011  
ffff  
0zzz  
ffff  
zzzz  
ffff  
s
d
0000  
0000  
0001  
0100  
Description  
First, the return address (PC + 2) is  
pushed onto the return stack. Next, the  
contents of W are written to PCL; the  
existing value is discarded. Then the  
contents of PCLATH and PCLATU are  
latched into PCH and PCU,  
respectively. The second cycle is  
executed as a NOPinstruction while the  
new next instruction is fetched.  
Description:  
The contents of the source register are  
moved to destination register ‘f ’. The  
d
actual address of the source register is  
determined by adding the 7-bit literal  
offset ‘z ’ in the first word to the value of  
s
FSR2. The address of the destination  
register is specified by the 12-bit literal  
‘f ’ in the second word. Both addresses  
d
can be anywhere in the 4096-byte data  
space (000h to FFFh).  
The MOVSFinstruction cannot use the  
PCL, TOSU, TOSH or TOSL as the  
destination register.  
If the resultant source address points to  
an indirect addressing register, the  
value returned will be 00h.  
Unlike CALL, there is no option to  
update W, STATUS or BSR.  
Words:  
Cycles:  
1
2
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Words:  
Cycles:  
2
2
Decode  
Read  
WREG  
Push PC to  
stack  
No  
operation  
No  
operation  
No  
operation  
No  
operation  
No  
operation  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Decode  
Determine  
Determine  
Read  
source addr source addr source reg  
Example:  
HERE  
CALLW  
Decode  
No  
operation  
No  
operation  
Write  
register ‘f’  
(dest)  
Before Instruction  
PC  
=
address (HERE)  
PCLATH =  
PCLATU =  
10h  
00h  
06h  
No dummy  
read  
W
=
After Instruction  
PC  
=
001006h  
Example:  
MOVSF  
[05h], REG2  
TOS  
=
address (HERE + 2)  
PCLATH =  
PCLATU =  
W
10h  
00h  
06h  
Before Instruction  
FSR2  
=
80h  
33h  
=
Contents  
of 85h  
REG2  
=
=
11h  
After Instruction  
FSR2  
=
80h  
Contents  
of 85h  
REG2  
=
=
33h  
33h  
© 2006 Microchip Technology Inc.  
Advance Information  
DS39760A-page 255