PIC16C64-04/PQ Microchip Technology, PIC16C64-04/PQ Datasheet - Page 151

no-image

PIC16C64-04/PQ

Manufacturer Part Number
PIC16C64-04/PQ
Description
8-Bit CMOS Microcontrollers
Manufacturer
Microchip Technology
Datasheet
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
1997 Microchip Technology Inc.
If Skip:
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
the W register. If 'd' is 1 the result is
placed back in register 'f'.
If the result is 1, the next instruction is
executed. If the result is 0, a NOP is
executed instead making it a 2T
instruction
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
Operation
Decode
HERE
CONTINUE •
Q1
Q1
00
No-
PC
CNT
if CNT=
PC
if CNT
PC
f
[0,1]
127
.
(destination),
INCFSZ f,d
register 'f'
Operation
=
=
=
=
1111
Read
Q2
Q2
No-
INCFSZ
GOTO
address HERE
CNT + 1
0,
address CONTINUE
0,
address HERE +1
Operation
Process
dfff
data
Q3
Q3
No-
LOOP
CNT, 1
destination
CY
Operation
ffff
Write to
Q4
Q4
No-
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Inclusive OR Literal with W
[ label ]
0
(W) .OR. k
Z
The contents of the W register is
OR’ed with the eight bit literal 'k'. The
result is placed in the W register
1
1
Before Instruction
After Instruction
Decode
IORLW
Q1
11
k
255
PIC16C6X
W
W
Z
IORLW k
literal 'k'
1000
0x35
Read
Q2
=
=
=
(W)
DS30234D-page 151
0x9A
0xBF
1
Process
kkkk
data
Q3
Write to
kkkk
.
Q4
W

Related parts for PIC16C64-04/PQ