PIC16F54-I/P Microchip Technology Inc., PIC16F54-I/P Datasheet - Page 48

no-image

PIC16F54-I/P

Manufacturer Part Number
PIC16F54-I/P
Description
18 PIN, 768 B FLASH, 25 RAM, 12 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F54-I/P

Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Frequency
20 MHz
Input Output
12
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
750 Bytes
Ram Size
25 Bytes
Speed
20 MHz
Timers
1-8-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F54-I/P
Manufacturer:
MARVELL
Quantity:
429
Part Number:
PIC16F54-I/P
0
PIC16F5X
COMF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DECF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
DS41213C-page 46
Before Instruction
After Instruction
Before Instruction
After Instruction
REG1
REG1
W
CNT
Z
CNT
Z
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
Decrement register ‘f’. 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
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
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
decremented. 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 and a NOP is
executed instead making it a
two-cycle instruction.
1
1(2)
HERE
CONTINUE •
0010
=
=
=
=
=
f
[0,1]
 2004 Microchip Technology Inc.
address(HERE)
CNT - 1;
0,
address (CONTINUE);
0,
address (HERE+1)
31
d;
11df
DECFSZ
GOTO
skip if result = 0
ffff
CNT, 1
LOOP

Related parts for PIC16F54-I/P