PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 123

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
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
1996 Microchip Technology Inc.
Before Instruction
After Instruction
Decode
CNT
Z
C
CNT
Z
C
Q1
=
=
=
=
=
=
register 'f'
Increment f
[ label ]
0
d
(f) + 1
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
WREG. If 'd' is 1 the result is placed
back in register 'f'.
1
1
INCF
OV, C, DC, Z
Read
0001
Q2
0xFF
0
?
0x00
1
1
f
[0,1]
255
(dest)
INCF f,d
010d
CNT, 1
Execute
Q3
ffff
destination
Write to
Q4
ffff
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
If skip:
Example:
Before Instruction
After Instruction
Forced NOP
Decode
PC
CNT
If CNT
If CNT
Q1
Q1
PC =
PC =
=
=
=
register 'f'
Increment f, skip if 0
[ label ]
0
d
(f) + 1
skip if result = 0
None
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
WREG. If 'd' is 1 the result is placed
back in register 'f'.
If the result is 0, the next instruction,
which is already fetched, is discarded,
and an NOP is executed instead making
it a two-cycle instruction.
1
1(2)
HERE
NZERO
ZERO
Read
NOP
0001
Q2
Q2
Address (HERE)
CNT + 1
0;
Address(ZERO)
0;
Address(NZERO)
f
[0,1]
255
PIC17C4X
(dest)
INCFSZ
:
:
INCFSZ f,d
111d
Execute
Execute
Q3
Q3
DS30412C-page 123
ffff
CNT, 1
destination
Write to
NOP
Q4
Q4
ffff

Related parts for PIC17C42