16F84 MICROCHIP [Microchip Technology], 16F84 Datasheet - Page 61

no-image

16F84

Manufacturer Part Number
16F84
Description
18-pin Flash/EEPROM 8-Bit Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
1998 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 exe-
cuted instead making it a 2T
tion
1
1(2)
Before Instruction
After Instruction
(2nd Cycle)
No-Operat
skip if result = 0
Decode
HERE
CONTINUE •
Q1
Q1
.
00
ion
PC
CNT
if CNT=
PC
if CNT
PC
f
[0,1]
127
(destination),
INCFSZ f,d
No-Opera
register 'f'
=
=
=
=
1111
Read
Q2
Q2
tion
INCFSZ
GOTO
address CONTINUE
0,
address HERE +1
address HERE
CNT + 1
0,
No-Opera
Process
dfff
data
Q3
Q3
tion
LOOP
CY
CNT, 1
instruc-
No-Operati
destination
ffff
Write to
Q4
Q4
on
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
IORLW
Decode
Q1
11
k
255
W
W
Z
PIC16F8X
IORLW k
literal 'k'
1000
0x35
Read
Q2
=
=
=
(W)
DS30430C-page 61
0x9A
0xBF
1
Process
kkkk
data
Q3
Write to
kkkk
.
Q4
W

Related parts for 16F84