PIC16C622-04I/P Microchip Technology, PIC16C622-04I/P Datasheet - Page 74
![IC MCU OTP 2KX14 COMP 18DIP](/photos/6/76/67657/18-dip_300mil__sml.jpg)
PIC16C622-04I/P
Manufacturer Part Number
PIC16C622-04I/P
Description
IC MCU OTP 2KX14 COMP 18DIP
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Specifications of PIC16C622-04I/P
Core Processor
PIC
Core Size
8-Bit
Speed
4MHz
Peripherals
Brown-out Detect/Reset, POR, WDT
Number Of I /o
13
Program Memory Size
3.5KB (2K x 14)
Program Memory Type
OTP
Ram Size
128 x 8
Voltage - Supply (vcc/vdd)
3 V ~ 6 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Package / Case
18-DIP (0.300", 7.62mm)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Other names
PIC16C622-04I/PR
PIC16C622-04I/PR
PIC16C622-04I/PR
- Current page: 74 of 128
- Download datasheet (4Mb)
PIC16C62X
SUBLW
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
DS30235J-page 72
Subtract W from Literal
[ label ]
0 ≤ k ≤ 255
k - (W) → (W)
C, DC, Z
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
SUBLW
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
11
W
C
W
C
W
C
W
C
W
C
W
C
0x02
SUBLW k
110x
=
=
=
=
=
=
=
=
=
=
=
=
1
?
1
1; result is positive
2
?
0
1; result is zero
3
?
0xFF
0; result is negative
kkkk
kkkk
SUBWF
Syntax:
Operands:
Operation:
Status
Affected:
Encoding:
Description:
Words:
Cycles:
Example 1:
Example 2:
Example 3:
Subtract W from f
[ label ]
0 ≤ f ≤ 127
d ∈ [0,1]
(f) - (W) → (dest)
C, DC, Z
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'.
1
1
SUBWF
Before Instruction
After Instruction
Before Instruction
After Instruction
Before Instruction
After Instruction
00
2003 Microchip Technology Inc.
REG1=
W
C
REG1=
W
C
REG1=
W
C
REG1=
W
C
REG1=
W
C
REG1=
W
C
REG1,1
SUBWF f,d
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 PIC16C622-04I/P
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![PIC16C622-04/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622/JW](/photos/12/13/121351/150-18-cdip_tmb.jpg)
Part Number:
Description:
IC MCU EPROM 2KX14 COMP 18CDIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-04/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20I/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20I/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-04/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-04E/P](/photos/6/76/67657/18-dip_300mil__tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18DIP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-04I/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20E/SO](/photos/6/76/67656/150-18-soic_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 18SOIC
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-04E/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20I/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20E/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet:
![PIC16C622-20/SS](/photos/6/58/65895/150-20-ssop_tmb.jpg)
Part Number:
Description:
IC MCU OTP 2KX14 COMP 20SSOP
Manufacturer:
Microchip Technology
Datasheet: