DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC17C42AT View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC17C42AT Datasheet PDF : 240 Pages
First Prev 121 122 123 124 125 126 127 128 129 130 Next Last
PIC17C4X
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Increment f
[ label ] INCF f,d
0 f 255
d [0,1]
(f) + 1 (dest)
OV, C, DC, Z
0001 010d ffff ffff
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
Q2
Read
register 'f'
Q3
Execute
Q4
Write to
destination
Example:
INCF
Before Instruction
CNT = 0xFF
Z
=0
C
=?
After Instruction
CNT =
Z
=
C
=
0x00
1
1
CNT, 1
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
If skip:
Q1
Forced NOP
Increment f, skip if 0
[ label ] INCFSZ f,d
0 f 255
d [0,1]
(f) + 1 (dest)
skip if result = 0
None
0001 111d ffff ffff
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)
Q2
Read
register 'f'
Q3
Execute
Q4
Write to
destination
Q2
NOP
Q3
Execute
Q4
NOP
Example:
HERE
NZERO
ZERO
INCFSZ
:
:
CNT, 1
Before Instruction
PC
= Address (HERE)
After Instruction
CNT =
If CNT =
PC =
If CNT
PC =
CNT + 1
0;
Address(ZERO)
0;
Address(NZERO)
© 1996 Microchip Technology Inc.
DS30412C-page 123

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]