PIC16F57-I/SP Microchip Technology, PIC16F57-I/SP Datasheet - Page 46

IC MCU FLASH 2KX12 28-DIP

PIC16F57-I/SP

Manufacturer Part Number
PIC16F57-I/SP
Description
IC MCU FLASH 2KX12 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 16Fr
Datasheets

Specifications of PIC16F57-I/SP

Program Memory Type
FLASH
Program Memory Size
3KB (2K x 12)
Package / Case
28-DIP (0.300", 7.62mm)
Core Processor
PIC
Core Size
8-Bit
Speed
20MHz
Peripherals
POR, WDT
Number Of I /o
20
Ram Size
72 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Oscillator Type
External
Operating Temperature
-40°C ~ 85°C
Processor Series
PIC16F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
72 B
Maximum Clock Frequency
20 MHz
Number Of Programmable I/os
20
Number Of Timers
1
Operating Supply Voltage
2 V to 5.5 V
Maximum Operating Temperature
+ 85 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
DV164120, DV164101, ICE2000
Minimum Operating Temperature
- 40 C
Data Rom Size
2 K
Height
3.3 mm
Length
34.67 mm
Supply Voltage (max)
5.5 V
Supply Voltage (min)
2 V
Width
7.24 mm
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
AC164001 - MODULE SKT PROMATEII 18/28DIP
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
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:
DS41213B-page 44
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
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
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 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]
 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 PIC16F57-I/SP