PIC16F57 Microchip Technology Inc., PIC16F57 Datasheet - Page 51

no-image

PIC16F57

Manufacturer Part Number
PIC16F57
Description
Flash-based, 8-bit Cmos Microcontroller Series
Manufacturer
Microchip Technology Inc.
Datasheet

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
Part Number:
PIC16F57-I/SO
Manufacturer:
PANASONIC
Quantity:
12 933
Part Number:
PIC16F57-I/SO
Manufacturer:
MIC
Quantity:
20 000
Part Number:
PIC16F57-I/SO
0
Part Number:
PIC16F57-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
MOVWF
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
NOP
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
© 2007 Microchip Technology Inc.
Before Instruction
After Instruction
TEMP_REG =
W
TEMP_REG =
W
(W) → (f)
Move W to f
[ label ]
0 ≤ f ≤ 31
Move data from the W register to
register ‘f’.
1
1
MOVWF TEMP_REG
No Operation
[ label ]
None
No operation
No operation.
1
1
NOP
0000
0000
=
=
0xFF
0x4F
0x4F
0x4F
MOVWF
NOP
001f
0000
ffff
0000
f
RETLW
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
TABLE
OPTION
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
W
OPTION
W
W
Return with Literal in W
[ label ]
0 ≤ k ≤ 255
k → (W);
TOS → PC
The W register is loaded with the
eight-bit literal ‘k’. The program
counter is loaded from the top of
the stack (the return address). This
is a two-cycle instruction.
1
2
CALL TABLE;W contains
ADDWF PC
RETLW k1
RETLW k2
RETLW kn
Load OPTION Register
[ label ]
None
(W) → OPTION
The content of the W register is
loaded into the Option register.
1
1
OPTION
1000
0000
=
=
=
=
0x07
value of k8
0x07
0x07
RETLW k
kkkk
OPTION
PIC16F5X
0000
;table offset
;value.
;W now has table
;value.
;W = offset
;Begin table
;
; End of table
DS41213D-page 49
kkkk
0010

Related parts for PIC16F57