PIC16C711-04/SP Microchip Technology, PIC16C711-04/SP Datasheet - Page 77

no-image

PIC16C711-04/SP

Manufacturer Part Number
PIC16C711-04/SP
Description
8-Bit CMOS Microcontrollers with A/D Converter
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
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)
Decode
HERE
CONTINUE •
NOP
Q1
Q1
00
PC
CNT
if CNT=
PC
if CNT
PC
f
[0,1]
127
.
(dest), skip if result = 0
INCFSZ f,d
=
=
=
=
register
1111
Read
NOP
Q2
Q2
INCFSZ
GOTO
'f'
address HERE
CNT + 1
0,
address CONTINUE
0,
address HERE +1
Process
dfff
NOP
data
Q3
Q3
LOOP
CNT, 1
Write to
ffff
CY
NOP
dest
Q4
Q4
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
PIC16C71X
255
W
W
Z
IORLW k
literal 'k'
1000
0x35
Read
Q2
=
=
=
(W)
DS30272A-page 77
0x9A
0xBF
1
Process
kkkk
data
Q3
Write to
kkkk
.
Q4
W

Related parts for PIC16C711-04/SP