PIC16C620 Microchip Technology, PIC16C620 Datasheet - Page 72

no-image

PIC16C620

Manufacturer Part Number
PIC16C620
Description
EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C620-04/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620-04I/P
Quantity:
8
Part Number:
PIC16C620/JW
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C620A-04/P
Quantity:
19
Part Number:
PIC16C620A-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHI
Quantity:
84
Part Number:
PIC16C620A-04/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-041/P
Quantity:
358
Part Number:
PIC16C620A-04I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C620A-04I/SS
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C620A-40/P
Manufacturer:
Microchip Technology
Quantity:
135
PIC16C62X
SWAPF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
DS30235G-page 72
TRIS
Operands:
Syntax:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example
Swap Nibbles in f
[ label ] SWAPF f,d
0
d
(f<3:0>)
(f<7:4>)
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
(W)
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
To maintain upward compatibility
with future PICmicro™ products,
do not use this instruction.
SWAPF REG,
00
00
f
f
[0,1]
127
7
TRIS register f;
0000
REG1
REG1
W
1110
(dest<7:4>),
(dest<3:0>)
f
0
0110
dfff
=
=
=
0xA5
0xA5
0x5A
0fff
ffff
Preliminary
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
d
(W) .XOR. (f)
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
(W) .XOR. k
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
f
11
[0,1]
k
1998 Microchip Technology Inc.
127
255
REG
W
REG
W
0110
XORLW k
0xAF
1010
W
W
REG
=
=
W)
dest)
1
dfff
kkkk
=
=
=
=
f,d
0xB5
0x1A
0xAF
0xB5
0x1A
0xB5
kkkk
ffff

Related parts for PIC16C620