鈫?/div>
(dest), skip if result = 0
None
00
1111
dfff
ffff
The contents of register 'f' are
incremented. 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 0, the next instruction,
which is already fetched, is discarded.
A NOP is executed instead making it
a two-cycle instruction
.
Words:
Cycles:
Example
1
2
GOTO THERE
Words:
Cycles:
Address
THERE
1
1(2)
INCFSZ
GOTO
CONTINUE 鈥?/div>
鈥?/div>
鈥?/div>
HERE
CNT,
LOOP
1
After Instruction
PC =
Example
Before Instruction
PC
=
address
HERE
CNT + 1
0,
address
CONTINUE
0,
address
HERE +1
After Instruction
CNT =
if CNT=
PC
=
if CNT鈮?/div>
PC
=
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Increment f
[
label
]
INCF f,d
0
鈮?/div>
f
鈮?/div>
127
d
鈭?/div>
[0,1]
(f) + 1
鈫?/div>
(dest)
Z
00
1010
dfff
ffff
The contents of register 'f' are
incremented. If 'd' is 0 the result is
placed in the W register. If 'd' is 1 the
result is placed back in register 'f'.
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Inclusive OR Literal with W
[
label
]
IORLW k
0
鈮?/div>
k
鈮?/div>
255
(W) .OR. k
鈫?/div>
(W)
Z
11
1000
kkkk
kkkk
The contents of the W register is
OR鈥檈d with the eight bit literal 'k'. The
result is placed in the W register
.
Words:
Cycles:
Example
1
1
IORLW
W
0x35
=
=
=
0x9A
0xBF
1
Words:
Cycles:
Example
1
1
INCF
CNT, 1
CNT
Z
=
=
=
=
0xFF
0
0x00
1
Before Instruction
After Instruction
W
Z
Before Instruction
After Instruction
CNT
Z
漏
1998 Microchip Technology Inc.
Preliminary
DS30235G-page 67
prev
next
PIC16C621A相关型号PDF文件下载
-
型号
版本
描述
厂商
下载
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
Microcontroller
-
英文版
Microcontroller
-
英文版
Microcontroller
ETC
-
英文版
EPROM-Based 8-Bit CMOS Microcontroller
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
ETC
-
英文版
EPROM Memory Programming Specification
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
28-Pin Programmable Mixed Signal Controller
-
英文版
EPROM Memory Programming Specification
-
英文版
Microcontroller
ETC
-
英文版
Microcontroller
ETC
-
英文版
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series