參數(shù)資料
型號: 16F84A
廠商: Microchip Technology Inc.
英文描述: CAT 5E CROSSOVER PATCH CORD CABLE BLUE 20 FT
中文描述: 18引腳閃存/ EEPROM的8位微控制器
文件頁數(shù): 67/124頁
文件大?。?/td> 1322K
代理商: 16F84A
PIC16F8X
1998 Microchip Technology Inc.
DS30430C-page 67
SUBWF
Subtract W from f
Syntax:
Operands:
[ label
0
f
127
d
[0,1]
(f) - (W)
→ (
destination)
C, DC, Z
SUBWF f,d
Operation:
Status Affected:
Encoding:
Description:
00
0010
dfff
ffff
Subtract (2’s complement method) W reg-
ister 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'.
1
1
Q1
Q2
Words:
Cycles:
Q Cycle Activity:
Q3
Q4
Decode
Read
register 'f'
Process
data
Write to
destination
Example 1:
SUBWF
Before Instruction
REG1,
1
REG1
W
C
Z
=
=
=
=
3
2
After Instruction
REG1
W
C
Z
=
=
=
=
1
2
1; result is positive
0
Example 2:
Before Instruction
REG1
W
C
Z
=
=
=
=
2
2
After Instruction
REG1
W
C
Z
=
=
=
=
0
2
1; result is zero
1
Example 3:
Before Instruction
REG1
W
C
Z
=
=
=
=
1
2
After Instruction
REG1
W
C
Z
=
=
=
=
0xFF
2
0; result is negative
0
SWAPF
Syntax:
Operands:
Swap Nibbles in f
[ label SWAPF f,d
0
f
127
d
[0,1]
(f<3:0>)
(destination<7:4>),
(f<7:4>)
(destination<3:0>)
None
Operation:
Status Affected:
Encoding:
Description:
00
1110
dfff
ffff
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
Q1
Q2
Words:
Cycles:
Q Cycle Activity:
Q3
Q4
Decode
Read
register 'f'
Process
data
Write to
destination
Example
SWAPF REG,
0
Before Instruction
REG1
=
0xA5
After Instruction
REG1
W
=
=
0xA5
0x5A
TRIS
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Load TRIS Register
[label
TRIS
5
f
7
(W)
TRIS register f;
f
00
0000
0110
0fff
The instruction is supported for code
compatibility with the PIC16C5X prod-
ucts. Since TRIS registers are read-
able and writable, the user can directly
address them.
1
1
Words:
Cycles:
Example
To maintain upward compatibility
with future PIC16CXX products,
do not use this instruction.
相關(guān)PDF資料
PDF描述
16F871 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 6 FT
16F872 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 10 FT
16F876A 28/40-pin Enhanced FLASH Microcontrollers
16F876 CAT 5E CROSSOVER, GREEN 15 FT PATCH CABLE
16F877 CAT 5E CROSSOVER PATCH CORD CABLE GREEN 20 FT
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
16F870 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:28/40-Pin 8-Bit CMOS FLASH Microcontrollers
16F871 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:28/40-Pin 8-Bit CMOS FLASH Microcontrollers
16F872 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:28-Pin, 8-Bit CMOS FLASH Microcontroller
16F876 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:28/40-pin 8-Bit CMOS FLASH Microcontrollers
16F876A 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:28/40-pin Enhanced FLASH Microcontrollers