PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 112

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
PIC17C4X
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS30412C-page 112
Before Instruction
After Instruction
Decode
WREG = 0x10
WREG = 0x25
Q1
ADD Literal to WREG
[ label ] ADDLW
0
(WREG) + k
The contents of WREG are added to the
8-bit literal 'k' and the result is placed in
WREG.
1
1
ADDLW
OV, C, DC, Z
literal 'k'
Read
1011
Q2
k
255
0x15
0001
Execute
Q3
(WREG)
k
kkkk
Write to
WREG
Q4
kkkk
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
Before Instruction
After Instruction
Decode
WREG
REG
WREG
REG
Q1
=
=
=
=
register 'f'
ADD WREG to f
[ label ] ADDWF
0
d
(WREG) + (f)
OV, C, DC, Z
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
ADDWF
Read
0000
Q2
0x17
0xC2
0xD9
0xC2
f
1996 Microchip Technology Inc.
255
111d
REG, 0
Execute
Q3
(dest)
f,d
ffff
destination
Write to
Q4
ffff

Related parts for PIC17C42