參數(shù)資料
型號: HCS120
廠商: Microchip Technology Inc.
英文描述: Bi-directional Authenticator(雙向文電鑒別碼)
中文描述: 雙向認證者(雙向文電鑒別碼)
文件頁數(shù): 121/170頁
文件大?。?/td> 4191K
代理商: HCS120
2003 Microchip Technology Inc.
Preliminary
DS40300C-page 119
PIC16F62X
SUBWF
Subtract W from f
Syntax:
[
label
]
SUBWF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f) - (W)
→ (
dest)
Status
Affected:
C, DC, Z
Encoding:
00
0010
dfff
ffff
Description:
Subtract (2’s complement method)
W register from 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'.
Words:
1
Cycles:
1
Example 1:
SUBWF
REG1, 1
Before Instruction
REG1 = 3
W
C
= 2
=
After Instruction
REG1 = 1
W
C
Z
= 2
= 1; result is positive
= DC = 1
Example 2:
Before Instruction
REG1 = 2
W
C
= 2
=
After Instruction
REG1 = 0
W
C
Z
= 2
= 1; result is zero
= DC = 1
Example 3:
Before Instruction
REG1 = 1
W
C
= 2
=
After Instruction
REG1 = 0xFF
W
= 2
C
= 0; result is negative
Z
= DC = 0
SWAPF
Swap Nibbles in f
Syntax:
[
label
]
SWAPF f,d
Operands:
0
f
127
d
[0,1]
Operation:
(f<3:0>)
(dest<7:4>),
(f<7:4>)
(dest<3:0>)
Status Affected:
None
Encoding:
00
1110
dfff
ffff
Description:
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'.
Words:
1
Cycles:
1
Example
SWAPF
REG1, 0
Before Instruction
REG1 = 0xA5
After Instruction
REG1 =
W
0xA5
0x5A
=
TRIS
Load TRIS Register
Syntax:
[
label
] TRIS
5
f
7
(W)
TRIS register f;
f
Operands:
Operation:
Status Affected:
None
Encoding:
00
0000
0110
0fff
Description:
The instruction is supported for
code compatibility with the
PIC16C5X products. Since TRIS
registers are readable and
writable, the user can directly
address them.
Words:
1
Cycles:
1
Example
To maintain upward
compatibility with future
PICmicro
products, do not
use this instruction.
相關PDF資料
PDF描述
HCS405 Code Hopping Encoder(KeeLoq 碼編碼器)
HCS109HMSR Connector Dust Cap; For Use With:RJ45 Field Bus Hexagonal Jam Nut Receptacles, RJF71B; Accessory Type:RJ Field Bus; Approval Categories:UL94V-0 Flammability rated; Body Material:Metallic Housing; Color:Black; Series:RJ Field Bus
HCS109DMSR Radiation Hardened Dual JK Flip Flop
HCS109KMSR Radiation Hardened Dual JK Flip Flop
HCS109MS Radiation Hardened Dual JK Flip Flop(抗輻射雙J-K觸發(fā)器)
相關代理商/技術參數(shù)
參數(shù)描述
HCS1201AX 制造商:JLWORLD 制造商全稱:JLWORLD 功能描述:Electro-Magnetic Sound Generators
HCS1203AX 制造商:JLWORLD 制造商全稱:JLWORLD 功能描述:Electro-Magnetic Sound Generators
HCS1206AX 制造商:JLWORLD 制造商全稱:JLWORLD 功能描述:Electro-Magnetic Sound Generators
HCS1212AX 制造商:JLWORLD 制造商全稱:JLWORLD 功能描述:Electro-Magnetic Sound Generators
HCS125 制造商:INTERSIL 制造商全稱:Intersil Corporation 功能描述:Radiation Hardened Quad Buffer, Three-State