參數(shù)資料
型號: PIC16F84
廠商: Microchip Technology Inc.
英文描述: 18-pin Flash/EEPROM 8-Bit Microcontrollers
中文描述: 18引腳閃存/ EEPROM的8位微控制器
文件頁數(shù): 69/124頁
文件大小: 1060K
代理商: PIC16F84
PIC16F8X
1998 Microchip Technology Inc.
DS30430C-page 69
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.
相關PDF資料
PDF描述
PIC16F85 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F86 18/20 Pin, 8-Bit CMOS FLASH Microcontroller with Comparators and A/D Product Brief
PIC16F873A 28/40-pin Enhanced FLASH Microcontrollers
PIC16F874A 28/40-pin Enhanced FLASH Microcontrollers
PIC16F876A 28/40-pin Enhanced FLASH Microcontrollers
相關代理商/技術參數(shù)
參數(shù)描述
PIC16F84-04/P 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F84-04/P 制造商:Microchip Technology Inc 功能描述:IC 8-BIT FLASH MCU
PIC16F84-04/SO 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz SOIC18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
PIC16F84-04/SO 制造商:Microchip Technology Inc 功能描述:IC SM 8-BIT FLASH MCU
PIC16F84-04I/P 功能描述:8位微控制器 -MCU 1.75KB 68 RAM 13 I/O 4MHz Ind Temp PDIP18 RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT