PIC16CR58A Microchip Technology, PIC16CR58A Datasheet - Page 145

no-image

PIC16CR58A

Manufacturer Part Number
PIC16CR58A
Description
ROM-Based 8-Bit CMOS Microcontroller Series
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16CR58A-04/P042
Manufacturer:
MOTOROLA
Quantity:
80
14.1
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
ADDWF
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
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
ADDLW
Decode
ADDWF
Q1
Q1
11
00
k
f
127
255
W
W
W
FSR =
W
FSR =
literal 'k'
register
0x15
(W)
111x
0111
FSR, 0
Read
Read
(destination)
Q2
Q2
'f'
=
=
=
=
0x10
0x25
0x17
0xC2
0xD9
0xC2
k
f,d
Process
Process
kkkk
dfff
data
data
Q3
Q3
.
destination
Write to
.
kkkk
Write to
ffff
Q4
W
Q4
ANDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
ANDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
AND Literal with W
[ label ] ANDLW
0
(W) .AND. (k)
Z
The contents of W register are
AND’ed with the eight bit literal 'k'. The
result is placed in the W register
1
1
Before Instruction
After Instruction
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
Z
AND the W register with register 'f'. If 'd'
is 0 the result is stored in the W regis-
ter. If 'd' is 1 the result is stored back in
register 'f'
1
1
Before Instruction
After Instruction
Decode
ANDLW
Decode
ANDWF
Q1
Q1
11
00
k
f
127
255
.
PIC16C6X
W
W
FSR =
W
FSR =
W
literal "k"
register
1001
0101
0x5F
FSR, 1
Read
Read
Q2
Q2
'f'
=
=
=
=
DS30234D-page 145
(destination)
(W)
0xA3
0x03
0x17
0xC2
0x17
0x02
k
f,d
Process
Process
kkkk
dfff
data
data
Q3
Q3
destination
Write to
kkkk
ffff
.
Write to
Q4
W
Q4

Related parts for PIC16CR58A