PIC16F627-04/SO Microchip Technology Inc., PIC16F627-04/SO Datasheet - Page 111

no-image

PIC16F627-04/SO

Manufacturer Part Number
PIC16F627-04/SO
Description
18 PIN, 1.75 KB FLASH, 224 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F627-04/SO

Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
SCI/USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin SOIC
Programmable Memory
1.75K Bytes
Ram Size
224 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F627-04/SO
Manufacturer:
MIC
Quantity:
933
Part Number:
PIC16F627-04/SO
Manufacturer:
MICROCHI
Quantity:
20 000
15.1
 2003 Microchip Technology Inc.
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Instruction Descriptions
Add Literal and W
[ label ] ADDLW
0 ≤ k ≤ 255
(W) + k → (W)
C, DC, Z
11
The contents of the W register
are added to the eight bit literal
'k' and the result is placed in the
W register.
1
1
ADDLW
Before Instruction
After Instruction
Add W and f
[ label ] ADDWF
0 ≤ f ≤ 127
d ∈ [0,1]
(W) + (f) → (dest)
C, DC, Z
00
Add the contents of the W regis-
ter with 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
ADDWF
Before Instruction
After Instruction
W = 0x10
W = 0x25
W
REG1 = 0xC2
W
REG1 = 0xC2
Z
C
DC
111x
0x15
0111
REG1, 0
= 0x17
= 0xD9
= 0
= 0
= 0
kkkk
dfff
k
f,d
kkkk
ffff
Preliminary
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
AND Literal with W
[ label ] ANDLW
0 ≤ k ≤ 255
(W) .AND. (k) → (W)
Z
11
The contents of W register are
AND’ed with the eight bit literal
'k'. The result is placed in the W
register.
1
1
ANDLW
Before Instruction
After Instruction
AND W with f
[ label ] ANDWF
0 ≤ f ≤ 127
d ∈ [0,1]
(W) .AND. (f) → (dest)
Z
00
AND the W register with 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
ANDWF
Before Instruction
After Instruction
PIC16F62X
W = 0xA3
W = 0x03
W
REG1 = 0xC2
W
REG1 = 0x02
1001
0x5F
0101
REG1, 1
DS40300C-page 109
= 0x17
= 0x17
kkkk
dfff
k
f,d
kkkk
ffff

Related parts for PIC16F627-04/SO