參數(shù)資料
型號: PIC12C67X
廠商: Microchip Technology Inc.
英文描述: 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
中文描述: 8引腳,8位CMOS微控制器與A / D轉(zhuǎn)換器和EEPROM數(shù)據(jù)存儲器
文件頁數(shù): 80/129頁
文件大小: 931K
代理商: PIC12C67X
PIC12C67X
DS30561B-page 80
1999 Microchip Technology Inc.
SUBLW
Syntax:
Subtract W from Literal
[ label
SUBLW k
0
k
255
k - (W)
→ (
W)
C, DC, Z
Operands:
Operation:
Status
Affected:
Encoding:
Description:
11
110x
kkkk
kkkk
The W register is subtracted (2’s
complement method) from the eight
bit literal 'k'. The result is placed in
the W register.
1
1
Words:
Cycles:
Example 1:
SUBLW
Before Instruction
0x02
W
C
=
=
1
After Instruction
W
C
=
=
1
1; result is positive
Example 2:
Before Instruction
W
C
=
=
2
After Instruction
W
C
=
=
0
1; result is zero
Example 3:
Before Instruction
W
C
=
=
3
After Instruction
W
C
tive
=
=
0xFF
0; result is nega-
SUBWF
Syntax:
Subtract W from f
[
label
]
SUBWF f,d
Operands:
0
f
127
d
[0,1]
(f) - (W)
→ (
dest)
C, DC, Z
Operation:
Status
Affected:
Encoding:
Description:
00
0010
dfff
ffff
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 regis-
ter 'f'.
1
1
Words:
Cycles:
Example 1:
SUBWF
Before Instruction
REG1,1
REG1
W
C
=
=
=
3
2
After Instruction
REG1
W
C
=
=
=
1
2
1; result is positive
Example 2:
Before Instruction
REG1
W
C
=
=
=
2
2
After Instruction
REG1
W
C
=
=
=
0
2
1; result is zero
Example 3:
Before Instruction
REG1
W
C
=
=
=
1
2
After Instruction
REG1
W
C
=
=
=
0xFF
2
0; result is negative
相關(guān)PDF資料
PDF描述
pic12ce674 8-Pin, 8-Bit CMOS Microcontroller with A/D Converter(具A/D轉(zhuǎn)換器和EEPROM數(shù)據(jù)存儲器的8位微控制器)
PIC12CR509A 8-Pin, 8-Bit CMOS Microcontrollers
PIC12F505 8/14-Pin, 8-Bit Flash Microcontrollers
PIC12F506 8/14-Pin, 8-Bit Flash Microcontroller
PIC12F510_07 8/14-Pin, 8-Bit Flash Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
PIC12C67X_13 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
PIC12CE-04/EJW 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/EP 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESM 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers
PIC12CE-04/ESN 制造商:MICROCHIP 制造商全稱:Microchip Technology 功能描述:8-Pin, 8-Bit CMOS Microcontrollers