English
Language : 

PIC17C7XX_13 Datasheet, PDF (202/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
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
Process
Data
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
Process
Data
Q4
Write to
destination
Example:
ADDWF
Before Instruction
WREG = 0x17
REG = 0xC2
After Instruction
WREG = 0xD9
REG = 0xC2
REG, 0
DS30289C-page 202
 1998-2013 Microchip Technology Inc.