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

PIC18F24J10-I/SO 参数 Datasheet PDF下载

PIC18F24J10-I/SO图片预览
型号: PIC18F24J10-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚高性能, RISC微控制器 [28/40/44-Pin High-Performance, RISC Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 368 页 / 5652 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第289页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第290页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第291页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第292页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第294页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第295页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第296页浏览型号PIC18F24J10-I/SO的Datasheet PDF文件第297页  
PIC18F45J10 FAMILY  
A summary of the instructions in the extended instruc-  
tion set is provided in Table 22-3. Detailed descriptions  
are provided in Section 22.2.2 “Extended Instruction  
Set”. The opcode field descriptions in Table 22-1  
(page 250) apply to both the standard and extended  
PIC18 instruction sets.  
22.2 Extended Instruction Set  
In addition to the standard 75 instructions of the PIC18  
instruction set, PIC18F45J10 family devices also  
provide an optional extension to the core CPU function-  
ality. The added features include eight additional  
instructions that augment indirect and indexed  
addressing operations and the implementation of  
Indexed Literal Offset Addressing mode for many of the  
standard PIC18 instructions.  
Note:  
The instruction set extension and the  
Indexed Literal Offset Addressing mode  
were designed for optimizing applications  
written in C; the user may likely never use  
these instructions directly in assembler.  
The syntax for these commands is pro-  
vided as a reference for users who may be  
reviewing code that has been generated  
by a compiler.  
The additional features of the extended instruction set  
are disabled by default. To enable them, users must set  
the XINST Configuration bit.  
The instructions in the extended set can all be  
classified as literal operations, which either manipulate  
the File Select Registers, or use them for indexed  
addressing. Two of the instructions, ADDFSR and  
SUBFSR, each have an additional special instantiation  
for using FSR2. These versions (ADDULNK and  
SUBULNK) allow for automatic return after execution.  
22.2.1  
EXTENDED INSTRUCTION SYNTAX  
Most of the extended instructions use indexed argu-  
ments, using one of the File Select Registers and some  
offset to specify a source or destination register. When  
an argument for an instruction serves as part of  
indexed addressing, it is enclosed in square brackets  
(“[ ]”). This is done to indicate that the argument is used  
as an index or offset. MPASM™ Assembler will flag an  
error if it determines that an index or offset value is not  
bracketed.  
The extended instructions are specifically implemented  
to optimize re-entrant program code (that is, code that  
is recursive or that uses a software stack) written in  
high-level languages, particularly C. Among other  
things, they allow users working in high-level  
languages to perform certain operations on data  
structures more efficiently. These include:  
When the extended instruction set is enabled, brackets  
are also used to indicate index arguments in byte-  
oriented and bit-oriented instructions. This is in addition  
to other changes in their syntax. For more details, see  
Section 22.2.3.1 “Extended Instruction Syntax with  
Standard PIC18 Commands”.  
• dynamic allocation and deallocation of software  
stack space when entering and leaving  
subroutines  
• Function Pointer invocation  
• Software Stack Pointer manipulation  
• manipulation of variables located in a software  
stack  
Note:  
In the past, square brackets have been  
used to denote optional arguments in the  
PIC18 and earlier instruction sets. In this  
text and going forward, optional  
arguments are denoted by braces (“{ }”).  
TABLE 22-3: EXTENSIONS TO THE PIC18 INSTRUCTION SET  
16-Bit Instruction Word  
MSb LSb  
Mnemonic,  
Operands  
Status  
Affected  
Description  
Cycles  
ADDFSR  
ADDULNK  
CALLW  
f, k  
k
Add Literal to FSR  
Add Literal to FSR2 and Return  
Call Subroutine using WREG  
1
2
2
2
1110 1000 ffkk kkkk  
1110 1000 11kk kkkk  
0000 0000 0001 0100  
1110 1011 0zzz zzzz  
1111 ffff ffff ffff  
1110 1011 1zzz zzzz  
1111 xxxx xzzz zzzz  
1110 1010 kkkk kkkk  
None  
None  
None  
None  
MOVSF  
zs, fd Move zs (source) to 1st Word  
fd (destination) 2nd Word  
zs, zd Move zs (source) to 1st Word  
MOVSS  
PUSHL  
2
1
None  
None  
zd (destination)  
Store Literal at FSR2,  
Decrement FSR2  
2nd Word  
k
SUBFSR  
SUBULNK  
f, k  
k
Subtract Literal from FSR  
Subtract Literal from FSR2 and  
Return  
1
2
1110 1001 ffkk kkkk  
1110 1001 11kk kkkk  
None  
None  
© 2009 Microchip Technology Inc.  
DS39682E-page 291  
 复制成功!