English
Language : 

PIC17C44 Datasheet, PDF (112/241 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
PIC17C4X
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
ADD Literal to WREG
[ label ] ADDLW k
0 ≤ k ≤ 255
(WREG) + k → (WREG)
OV, C, DC, Z
1011 0001 kkkk kkkk
The contents of WREG are added to the
8-bit literal 'k' and the result is placed in
WREG.
1
1
Q2
Read
literal 'k'
Q3
Execute
Q4
Write to
WREG
Example:
ADDLW
Before Instruction
WREG = 0x10
After Instruction
WREG = 0x25
0x15
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
ADD WREG to f
[ label ] ADDWF f,d
0 ≤ f ≤ 255
d ∈ [0,1]
(WREG) + (f) → (dest)
OV, C, DC, Z
0000 111d ffff ffff
Add WREG to register 'f'. If 'd' is 0 the
result is stored in WREG. If 'd' is 1 the
result is stored back in register 'f'.
1
1
Q2
Read
register 'f'
Q3
Execute
Q4
Write to
destination
Example:
ADDWF
Before Instruction
WREG = 0x17
REG = 0xC2
After Instruction
WREG = 0xD9
REG = 0xC2
REG, 0
DS30412C-page 112
© 1996 Microchip Technology Inc.