PIC16HV540 Microchip Technology, PIC16HV540 Datasheet - Page 49

no-image

PIC16HV540

Manufacturer Part Number
PIC16HV540
Description
Enhanced PIC16C54 EPROM-Based 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16HV540-04/P
Manufacturer:
Microchip
Quantity:
1 736
Part Number:
PIC16HV540-04/SO
Manufacturer:
Microchip
Quantity:
485
Part Number:
PIC16HV540-04I/P
Manufacturer:
MICROCHIP
Quantity:
664
Part Number:
PIC16HV540-04I/SO
Manufacturer:
Maxim
Quantity:
41
Part Number:
PIC16HV540-20/P
Quantity:
5
INCF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
INCFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
2000 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
CNT
Z
CNT
Z
PC
CNT
if CNT
PC
if CNT
PC
Increment f
[ label ]
0
d
(f) + 1
0010
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’.
1
1
INCF
=
=
=
=
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
0011
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 0, then the next instruc-
tion, which is already fetched, is dis-
carded and an NOP is executed
instead making it a two cycle instruc-
tion.
1
1(2)
HERE
CONTINUE •
=
=
=
=
=
f
f
[0,1]
[0,1]
0xFF
0
0x00
1
address (HERE)
CNT + 1;
0,
address (CONTINUE);
0,
address (HERE +1)
31
31
10df
CNT,
11df
(dest)
(dest), skip if result = 0
INCF f,d
INCFSZ f,d
INCFSZ
GOTO
ffff
1
ffff
LOOP
CNT,
1
Preliminary
IORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
IORWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
W
W
Z
RESULT =
W
RESULT =
W
Z
=
=
=
Inclusive OR literal with W
[ label ]
0
(W) .OR. (k)
1101
The contents of the W register are
OR’ed with the eight bit literal 'k'. The
result is placed in the W register.
1
1
IORLW
0x9A
0xBF
0
Inclusive OR W with f
[ label ]
0
d
(W).OR. (f)
0001
Inclusive OR the W register with regis-
ter 'f'. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is
placed back in register 'f'.
1
1
IORWF
=
=
=
PIC16HV540
k
f
[0,1]
0x13
0x91
0x13
0x93
0
31
255
kkkk
0x35
00df
IORLW k
IORWF
(dest)
(W)
kkkk
ffff
RESULT, 0
DS40197B-page 49
f,d

Related parts for PIC16HV540