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

PIC18F4520-I/PT 参数 Datasheet PDF下载

PIC18F4520-I/PT图片预览
型号: PIC18F4520-I/PT
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/PT的Datasheet PDF文件第277页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第278页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第279页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第280页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第282页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第283页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第284页浏览型号PIC18F4520-I/PT的Datasheet PDF文件第285页  
PIC18F2420/2520/4420/4520  
BRA  
Unconditional Branch  
BSF  
Bit Set f  
Syntax:  
BRA  
n
Syntax:  
BSF f, b {,a}  
Operands:  
Operation:  
-1024 n 1023  
Operands:  
0 f 255  
0 b 7  
a [0,1]  
(PC) + 2 + 2n PC  
Status Affected: None  
Operation:  
1f<b>  
Encoding:  
1101  
0nnn  
nnnn  
nnnn  
Status Affected:  
Encoding:  
None  
Description:  
Add the 2’s complement number, ‘2n’, to  
the PC. Since the PC will have incre-  
mented to fetch the next instruction, the  
new address will be PC + 2 + 2n. This  
instruction is a two-cycle instruction.  
1000  
bbba  
ffff  
ffff  
Description:  
Bit ‘b’ in register ‘f’ is set.  
If ‘a’ is ‘0’, the Access Bank is selected.  
If ‘a’ is ‘1’, the BSR is used to select the  
GPR bank (default).  
If ‘a’ is ‘0’ and the extended instruction  
set is enabled, this instruction operates  
in Indexed Literal Offset Addressing  
mode whenever f 95 (5Fh). See  
Section 24.2.3 “Byte-Oriented and  
Bit-Oriented Instructions in Indexed  
Literal Offset Mode” for details.  
Words:  
Cycles:  
1
2
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Decode  
Read literal  
‘n’  
Process  
Data  
Write to PC  
No  
operation  
No  
operation  
No  
operation  
No  
operation  
Words:  
Cycles:  
1
1
Q Cycle Activity:  
Q1  
Example:  
HERE  
BRA Jump  
Q2  
Q3  
Q4  
Before Instruction  
Decode  
Read  
register ‘f’  
Process  
Data  
Write  
register ‘f’  
PC  
=
=
address (HERE)  
address (Jump)  
After Instruction  
PC  
Example:  
BSF  
FLAG_REG, 7, 1  
0Ah  
8Ah  
Before Instruction  
FLAG_REG  
After Instruction  
FLAG_REG  
=
=
© 2008 Microchip Technology Inc.  
DS39631E-page 279  
 复制成功!