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

PIC18F4431-I/P 参数 Datasheet PDF下载

PIC18F4431-I/P图片预览
型号: PIC18F4431-I/P
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚增强型闪存微控制器采用纳瓦技术,高性能PWM和A / D [28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High-Performance PWM and A/D]
分类和应用: 闪存微控制器
文件页数/大小: 392 页 / 3127 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F4431-I/P的Datasheet PDF文件第279页浏览型号PIC18F4431-I/P的Datasheet PDF文件第280页浏览型号PIC18F4431-I/P的Datasheet PDF文件第281页浏览型号PIC18F4431-I/P的Datasheet PDF文件第282页浏览型号PIC18F4431-I/P的Datasheet PDF文件第284页浏览型号PIC18F4431-I/P的Datasheet PDF文件第285页浏览型号PIC18F4431-I/P的Datasheet PDF文件第286页浏览型号PIC18F4431-I/P的Datasheet PDF文件第287页  
PIC18F2331/2431/4331/4431  
The control instructions may use some of the following  
operands:  
24.0 INSTRUCTION SET SUMMARY  
The PIC18 instruction set adds many enhancements to  
the previous PIC® instruction sets, while maintaining an  
easy migration from these PIC instruction sets.  
• A program memory address (specified by ‘n’)  
• The mode of the call or return instructions  
(specified by ‘s’)  
Most instructions are a single program memory word  
(16 bits), but there are three instructions that require  
two program memory locations.  
• The mode of the table read and table write  
instructions (specified by ‘m’)  
• No operand required  
(specified by ‘—’)  
Each single-word instruction is a 16-bit word divided  
into an opcode, which specifies the instruction type and  
one or more operands, which further specify the  
operation of the instruction.  
All instructions are a single word, except for three  
double-word instructions. These three instructions were  
made double word instructions so that all the required  
information is available in these 32 bits. In the second  
word, the 4 MSbs are ‘1’s. If this second word is  
executed as an instruction (by itself), it will execute as a  
NOP.  
The instruction set is highly orthogonal and is grouped  
into four basic categories:  
Byte-oriented operations  
Bit-oriented operations  
Literal operations  
All single-word instructions are executed in a single  
instruction cycle, unless a conditional test is true or the  
program counter is changed as a result of the instruc-  
tion. In these cases, the execution takes two instruction  
cycles with the additional instruction cycle(s) executed  
as a NOP.  
Control operations  
The PIC18 instruction set summary in Table 24-2 lists  
byte-oriented, bit-oriented, literal and control  
operations. Table 24-1 shows the opcode field  
descriptions.  
The double word instructions execute in two instruction  
cycles.  
Most byte-oriented instructions have three operands:  
1. The file register (specified by ‘f’)  
One instruction cycle consists of four oscillator periods.  
Thus, for an oscillator frequency of 4 MHz, the normal  
instruction execution time is 1 s. If a conditional test is  
true or the program counter is changed as a result of  
an instruction, the instruction execution time is 2 s.  
Two-word branch instructions (if true) would take 3 s.  
2. The destination of the result  
(specified by ‘d’)  
3. The accessed memory  
(specified by ‘a’)  
The file register designator, ‘f’, specifies which file  
register is to be used by the instruction.  
Figure 24-1 shows the general formats that the  
instructions can have.  
The destination designator, ‘d’, specifies where the result  
of the operation is to be placed. If ‘d’ is ‘0’, the result is  
placed in the WREG register. If ‘d’ is ‘1’, the result is  
placed in the file register specified in the instruction.  
All examples use the format ‘nnh’ to represent a hexa-  
decimal number, where ‘h’ signifies a hexadecimal  
digit.  
All bit-oriented instructions have three operands:  
The Instruction Set Summary, shown in Table 24-2,  
lists the instructions recognized by the Microchip  
Assembler (MPASMTM Assembler). Section 24.2  
“Instruction Set” provides a description of each  
instruction.  
1. The file register (specified by ‘f’)  
2. The bit in the file register  
(specified by ‘b’)  
3. The accessed memory  
(specified by ‘a’)  
24.1 Read-Modify-Write Operations  
The bit field designator, ‘b’, selects the number of the bit  
affected by the operation, while the file register desig-  
nator, ‘f’, represents the number of the file in which the  
bit is located.  
Any instruction that specifies a file register as part of  
the instruction performs a Read-Modify-Write (R-M-W)  
operation. The register is read, the data is modified,  
and the result is stored according to either the instruc-  
tion or the destination designator, ‘d’. A read operation  
is performed on a register even if the instruction writes  
to that register.  
The literal instructions may use some of the following  
operands:  
• A literal value to be loaded into a file register  
(specified by ‘k’)  
For example, a “BCF PORTB, 1” instruction will read  
PORTB, clear bit 1 of the data, then write the result back  
to PORTB. The read operation would have the unin-  
tended result that any condition that sets the RBIF flag  
would be cleared. The R-M-W operation may also copy  
the level of an input pin to its corresponding output latch.  
• The desired FSR register to load the literal value  
into (specified by ‘f’)  
• No operand required  
(specified by ‘—’)  
2010 Microchip Technology Inc.  
DS39616D-page 283  
 复制成功!