PIC16F54-I/P Microchip Technology Inc., PIC16F54-I/P Datasheet - Page 45
![no-image](/images/manufacturer_photos/0/4/440/microchip_technology_inc__sml.jpg)
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
1.PIC16F54-IP.pdf
(90 pages)
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
Company:
Part Number:
PIC16F54-I/P
Manufacturer:
MARVELL
Quantity:
429
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