PIC16C621A Microchip Technology Inc., PIC16C621A Datasheet - Page 75
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
PIC16C621A
Manufacturer Part Number
PIC16C621A
Description
Eprom-based 8-bit Cmos Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
1.PIC16C621A.pdf
(128 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C621A-04/P
Manufacturer:
MICROCHI
Quantity:
20 000
Company:
Part Number:
PIC16C621A-04/SO
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C621A-04/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C621A-04E/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16C621A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C621A-04I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16C621A-20/SO
Manufacturer:
NICHICON
Quantity:
12 000
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
TRIS
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
2003 Microchip Technology Inc.
Swap Nibbles in f
[ label ] SWAPF f,d
0 ≤ f ≤ 127
d ∈ [0,1]
(f<3:0>) → (dest<7:4>),
(f<7:4>) → (dest<3:0>)
None
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'.
1
1
Before Instruction
After Instruction
Load TRIS Register
[ label ] TRIS
5 ≤ f ≤ 7
(W) → TRIS register f;
None
The instruction is supported for
code compatibility with the
PIC16C5X products. Since TRIS
registers are readable and
writable, the user can directly
address them.
1
1
00
To maintain upward compatibil-
ity with future PICmicro
ucts, do not use this
instruction.
00
SWAPF
REG,
0000
REG1
REG1
W
1110
f
0
0110
dfff
=
=
=
0xA5
0xA5
0x5A
®
0fff
prod-
ffff
XORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
XORWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Exclusive OR W with f
[ label ] XORWF
0 ≤ f ≤ 127
d ∈ [0,1]
(W) .XOR. (f) → (dest)
Z
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'.
1
1
XORWF
Before Instruction
After Instruction
Exclusive OR Literal with W
[ label
]
0 ≤ k ≤ 255
(W) .XOR. k → (W)
Z
The contents of the W register
are XOR’ed with the eight bit
literal 'k'. The result is placed in
the W register.
1
1
XORLW
Before Instruction
After Instruction
00
11
PIC16C62X
REG
W
REG
W
0110
REG
1010
0xAF
XORLW k
W
W
=
=
1
DS30235J-page 73
dfff
kkkk
=
=
=
=
f,d
0xB5
0x1A
0xAF
0xB5
0x1A
0xB5
kkkk
ffff