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

PIC16C71-04/SO 参数 Datasheet PDF下载

PIC16C71-04/SO图片预览
型号: PIC16C71-04/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 8位CMOS微控制器与A / D转换器 [8-Bit CMOS Microcontrollers with A/D Converter]
分类和应用: 转换器微控制器
文件页数/大小: 176 页 / 1596 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C71-04/SO的Datasheet PDF文件第67页浏览型号PIC16C71-04/SO的Datasheet PDF文件第68页浏览型号PIC16C71-04/SO的Datasheet PDF文件第69页浏览型号PIC16C71-04/SO的Datasheet PDF文件第70页浏览型号PIC16C71-04/SO的Datasheet PDF文件第72页浏览型号PIC16C71-04/SO的Datasheet PDF文件第73页浏览型号PIC16C71-04/SO的Datasheet PDF文件第74页浏览型号PIC16C71-04/SO的Datasheet PDF文件第75页  
PIC16C71X  
9.1  
Instruction Descriptions  
Add Literal and W  
ANDLW  
AND Literal with W  
ADDLW  
Syntax:  
[label] ANDLW  
k
Syntax:  
[label] ADDLW  
0 k 255  
k
Operands:  
Operation:  
Status Affected:  
Encoding:  
Description:  
0 k 255  
Operands:  
Operation:  
Status Affected:  
Encoding:  
Description:  
(W) .AND. (k) (W)  
(W) + k (W)  
C, DC, Z  
Z
11  
1001  
kkkk  
kkkk  
11  
111x  
kkkk  
kkkk  
The contents of W register are  
AND’ed with the eight bit literal 'k'.The  
result is placed in the W register.  
The contents of the W register are  
added to the eight bit literal 'k' and the  
result is placed in the W register.  
Words:  
1
1
Words:  
1
1
Cycles:  
Cycles:  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Decode  
Read  
literal "k"  
Process  
data  
Write to  
W
Decode  
Read  
literal 'k'  
Process  
data  
Write to  
W
ANDLW  
0x5F  
ADDLW  
0x15  
Example  
Example:  
Before Instruction  
Before Instruction  
W
=
0xA3  
0x03  
W
=
0x10  
0x25  
After Instruction  
After Instruction  
W
=
W
=
ADDWF  
Syntax:  
Add W and f  
ANDWF  
Syntax:  
AND W with f  
[label] ADDWF f,d  
[label] ANDWF f,d  
Operands:  
0 f 127  
Operands:  
0 f 127  
d
[0,1]  
d
[0,1]  
Operation:  
(W) + (f) (dest)  
Operation:  
(W) .AND. (f) (dest)  
Status Affected:  
Encoding:  
C, DC, Z  
Status Affected:  
Encoding:  
Z
00  
0111  
dfff  
ffff  
00  
0101  
dfff  
ffff  
Add the contents of the W register  
with register 'f'. If 'd' is 0 the result is  
stored in the W register. If 'd' is 1 the  
result is stored back in register 'f'.  
AND the W register with register 'f'. If  
'd' is 0 the result is stored in the W  
register. If 'd' is 1 the result is stored  
back in register 'f'.  
Description:  
Description:  
Words:  
1
1
Words:  
1
1
Cycles:  
Cycles:  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
Decode  
Read  
register  
'f'  
Process  
data  
Write to  
Dest  
Decode  
Read  
register  
'f'  
Process  
data  
Write to  
Dest  
ADDWF  
FSR,  
0
ANDWF  
FSR, 1  
Example  
Example  
Before Instruction  
Before Instruction  
W
FSR =  
=
0x17  
0xC2  
W
FSR =  
=
0x17  
0xC2  
After Instruction  
After Instruction  
W
FSR =  
=
0xD9  
0xC2  
W
FSR =  
=
0x17  
0x02  
1997 Microchip Technology Inc.  
DS30272A-page 71  
 复制成功!