PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 117

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
13.1
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
2001 Microchip Technology Inc.
Before Instruction:
After Instruction:
Instruction Descriptions
W
W
=
=
0x10
0x25
Add Literal and W
[ label ] ADDLW
0
(W) + k
C, DC, Z
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
Decode
Q1
11
k
255
0x15
literal ’k’
(W)
111x
Read
Q2
Process
k
kkkk
data
Q3
Write to
kkkk
Q4
W
Preliminary
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Before Instruction:
After Instruction:
W
FSR
W
FSR
PIC16C925/926
=
=
=
=
Add W and f
[ label ] ADDWF
0
d
(W) + (f)
C, DC, Z
Add the contents of 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
ADDWF
Decode
Q1
00
0x17
0xC2
0xD9
0xC2
f
127
FSR,
register ’f’
0111
Read
(destination)
Q2
DS39544A-page 115
0
Process
f [,d]
dfff
data
Q3
destination
Write to
ffff
Q4

Related parts for PIC16C926-I/CL