PIC16F57-I/P Microchip Technology Inc., PIC16F57-I/P Datasheet - Page 45

no-image

PIC16F57-I/P

Manufacturer Part Number
PIC16F57-I/P
Description
28 PIN, 3K FLASH, 72 RAM, 20 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F57-I/P

Cpu Speed
5 MIPS
Eeprom Memory
0 Bytes
Frequency
20 MHz
Input Output
20
Memory Type
Flash
Number Of Bits
8
Package Type
28-pin PDIP
Programmable Memory
3K Bytes
Ram Size
72 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:
PIC16F57-I/P
Manufacturer:
Microchip Technology
Quantity:
26 657
Part Number:
PIC16F57-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F57-I/P
0
ADDWF
Syntax:
Operands:
Operation:
Status Affected: C, DC, Z
Description:
Words:
Cycles:
Example:
ANDLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
 2004 Microchip Technology Inc.
Encoding:
Before Instruction
After Instruction
Before Instruction
After Instruction
W
W
W
TEMP_REG =
TEMP_REG =
W
=
=
(W).AND. (k)
Add W and f
[ label ] ADDWF
0
d
(W) + (f)
Add the contents of the W register
and register ‘f’. If ‘d’ is ‘0’, the
result is stored in the W register. If
‘d’ is ‘1’, the result is stored back in
1
1
ADDWF TEMP_REG, 0
AND literal with W
[ label ] ANDLW
0
The contents of the W register are
AND’ed with the eight-bit literal ‘k’.
The result is placed in the W
register.
1
1
ANDLW H'5F'
register 'f'.
0001
1110
0xA3
0x03
f
k
=
=
31
255
0x17
0xC2
0xD9
0xC2
11df
kkkk
(dest)
(W)
ffff
kkkk
f, d
k
ANDWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
BCF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
FLAG_REG =
FLAG_REG =
W
TEMP_REG =
W
TEMP_REG =
AND W with f
[ label ] ANDWF
0
d
(W) .AND. (f)
The contents of the W register are
AND’ed with 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
ANDWF TEMP_REG, 1
Bit Clear f
[ label ] BCF
0
0
0
Bit ‘b’ in register ‘f’ is cleared.
1
1
BCF
0001
0100
f
f
b
=
(f<b>)
=
31
31
7
0xC7
0x47
FLAG_REG,
0xC2
0x17
0x17
0x02
01df
bbbf
PIC16F5X
f, b
(dest)
DS41213C-page 43
ffff
ffff
f, d
7

Related parts for PIC16F57-I/P