PIC16C56A Microchip Technology Inc., PIC16C56A Datasheet - Page 56

no-image

PIC16C56A

Manufacturer Part Number
PIC16C56A
Description
Eprom/rom-based 8-bit Cmos Microcontroller Series
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C56A
Manufacturer:
MICROCHI
Quantity:
100
Part Number:
PIC16C56A-04/P
Manufacturer:
Microchip
Quantity:
2 190
Part Number:
PIC16C56A-04/P
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C56A-04/P
Manufacturer:
M
Quantity:
20 000
Part Number:
PIC16C56A-04/SO
Manufacturer:
MICROC
Quantity:
650
Part Number:
PIC16C56A-04/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C56A-20/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16C56A/JW
Manufacturer:
Microchip Technology
Quantity:
2
Part Number:
PIC16C56AT-04I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
PIC16C5X
COMF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DECF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DS30453D-page 54
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
REG1
W
CNT
Z
CNT
Z
Decrement register 'f'. If 'd' is 0 the
Complement f
[ label ] COMF
0
d
(f)
The contents of register ’f’ are
complemented. If ’d’ is 0 the result
is stored in the W register. If ’d’ is 1
the result is stored back in
register ’f’.
1
1
COMF
Decrement f
[ label ] DECF f,d
0
d
(f) – 1
result is stored in the W register. If
'd' is 1 the result is stored back in
register 'f'.
1
1
DECF
0010
0000
=
=
=
=
=
=
=
f
f
[0,1]
[0,1]
(dest)
0x13
0x13
0xEC
31
31
0x01
0
0x00
1
REG1,0
(dest)
01df
11df
CNT, 1
f,d
ffff
ffff
Preliminary
DECFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
PC
CNT
if CNT
PC
if CNT
PC
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) – 1
The contents of register 'f' are dec-
remented. 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 instruc-
tion, which is already fetched, is
discarded and a NOP is executed
instead making it a two-cycle
instruction.
1
1(2)
HERE
CONTINUE •
0010
=
=
=
=
=
f
[0,1]
address(HERE)
CNT - 1;
0,
address (CONTINUE);
0,
address (HERE+1)
31
2002 Microchip Technology Inc.
d;
11df
DECFSZ
GOTO
skip if result = 0
ffff
CNT, 1
LOOP

Related parts for PIC16C56A