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

PIC12C508A-04/P 参数 Datasheet PDF下载

PIC12C508A-04/P图片预览
型号: PIC12C508A-04/P
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚, 8位CMOS微控制器 [8-Pin, 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器和处理器外围集成电路光电二极管PC可编程只读存储器时钟
文件页数/大小: 113 页 / 1604 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC12C508A-04/P的Datasheet PDF文件第53页浏览型号PIC12C508A-04/P的Datasheet PDF文件第54页浏览型号PIC12C508A-04/P的Datasheet PDF文件第55页浏览型号PIC12C508A-04/P的Datasheet PDF文件第56页浏览型号PIC12C508A-04/P的Datasheet PDF文件第58页浏览型号PIC12C508A-04/P的Datasheet PDF文件第59页浏览型号PIC12C508A-04/P的Datasheet PDF文件第60页浏览型号PIC12C508A-04/P的Datasheet PDF文件第61页  
PIC12C5XX  
SWAPF  
Syntax:  
Swap Nibbles in f  
[ label ] SWAPF f,d  
0 f 31  
XORLW  
Exclusive OR literal with W  
Syntax:  
[label] XORLW  
k
Operands:  
Operands:  
0 k 255  
d
[0,1]  
Operation:  
(W) .XOR. k → (W)  
Operation:  
(f<3:0>) (dest<7:4>);  
(f<7:4>) (dest<3:0>)  
Status Affected:  
Encoding:  
Z
1111  
kkkk  
kkkk  
Status Affected: None  
The contents of the W register are  
XOR’ed with the eight bit literal 'k'. The  
result is placed in the W register.  
Description:  
0011  
10df  
ffff  
Encoding:  
The upper and lower nibbles of register  
’f’ are exchanged. If ’d’ is 0 the result is  
placed in W register. If ’d’ is 1 the result  
is placed in register ’f’.  
Description:  
Words:  
1
Cycles:  
Example:  
1
Words:  
Cycles:  
Example  
1
1
XORLW 0xAF  
Before Instruction  
0xB5  
W
=
SWAPF  
REG1,  
0
After Instruction  
Before Instruction  
REG1  
W
=
0x1A  
=
0xA5  
After Instruction  
REG1  
W
=
=
0xA5  
0X5A  
XORWF  
Exclusive OR W with f  
[ label ] XORWF f,d  
0 f 31  
Syntax:  
Operands:  
TRIS  
Load TRIS Register  
d
[0,1]  
Syntax:  
[ label ] TRIS  
f = 6  
f
Operation:  
(W) .XOR. (f) → (dest)  
Operands:  
Operation:  
Status Affected:  
Encoding:  
Z
(W) TRIS register f  
0001  
10df  
ffff  
Status Affected: None  
Exclusive OR 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'.  
Description:  
0000  
0000  
0fff  
Encoding:  
TRIS register ’f’ (f = 6) is loaded with the  
contents of the W register  
Description:  
Words:  
Cycles:  
Example  
1
1
Words:  
Cycles:  
Example  
1
1
TRIS  
GPIO  
REG,1  
XORWF  
Before Instruction  
Before Instruction  
W
=
0XA5  
0XA5  
REG  
=
0xAF  
0xB5  
W
=
After Instruction  
TRIS  
=
After Instruction  
REG  
W
=
=
0x1A  
0xB5  
Note: f = 6 for PIC12C5XX only.  
1999 Microchip Technology Inc.  
DS40139E-page 57  
 复制成功!