PIC12CE67 Microchip Technology, PIC12CE67 Datasheet - Page 72

no-image

PIC12CE67

Manufacturer Part Number
PIC12CE67
Description
8-Pin/ 8-Bit CMOS Microcontroller with A/D Converter and EEPROM Data Memory
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC12CE673-04/P
Manufacturer:
Microchip
Quantity:
486
Part Number:
PIC12CE673-04I/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC12CE673-10/P
Manufacturer:
Microchip
Quantity:
373
Part Number:
PIC12CE673-10E/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC12CE673-10I/P
Manufacturer:
MICROCHIP
Quantity:
12 000
Part Number:
PIC12CE674-04/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC12CE674-P04
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC12CE674/JW
Manufacturer:
MICROCH
Quantity:
20 000
PIC12CE67X
SUBLW
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
DS40181B-page 72
Subtract W from Literal
[ label ]
0
k - (W)
C, DC, Z
The W register is subtracted (2’s com-
plement method) from the eight bit literal
'k'. The result is placed in the W register.
1
1
SUBLW
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
11
k
255
W
C
W
C
W
C
W
C
W
C
W
C
tive
SUBLW k
0x02
W)
110x
=
=
=
=
=
=
=
=
=
=
=
=
1
?
1
1; result is positive
2
?
0
1; result is zero
3
?
0xFF
0; result is nega-
kkkk
kkkk
Preliminary
SUBWF
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
Subtract W from f
[ label ]
0
d
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
SUBWF
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
(f) - (W)
C, DC, Z
00
f
[0,1]
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
REG1
W
C
127
1998 Microchip Technology Inc.
SUBWF f,d
REG1,1
dest)
0010
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
3
2
?
1
2
1; result is positive
2
2
?
0
2
1; result is zero
1
2
?
0xFF
2
0; result is negative
dfff
ffff

Related parts for PIC12CE67