PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 121

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
15.1
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
1997 Microchip Technology Inc.
Instruction Descriptions
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
Before Instruction
After Instruction
Decode
ADDLW
Q1
11
k
255
W
W
literal 'k'
0x15
(W)
111x
Read
Q2
=
=
0x10
0x25
k
Process
kkkk
data
Q3
Write to
.
kkkk
Q4
W
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
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
Before Instruction
After Instruction
Decode
ADDWF
Q1
00
f
PIC16C9XX
127
W
FSR =
W
FSR =
register
0111
FSR, 0
Read
(destination)
Q2
'f'
=
=
DS30444E - page 121
0x17
0xC2
0xD9
0xC2
f,d
Process
dfff
data
Q3
.
destination
Write to
ffff
Q4

Related parts for PIC16C923-04I/CL