English
Language : 

PIC16F628-20P Datasheet, PDF (118/170 Pages) Microchip Technology – FLASH-Based 8-Bit CMOS Microcontroller
PIC16F62X
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Move W to f
[ label ] MOVWF f
0 ≤ f ≤ 127
(W) → (f)
None
00
0000 1fff ffff
Move data from W register to
register 'f'.
1
1
MOVWF REG1
Before Instruction
REG1 = 0xFF
W = 0x4F
After Instruction
REG1 = 0x4F
W = 0x4F
OPTION
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Load Option Register
[ label ] OPTION
None
(W) → OPTION
None
00
0000 0110 0010
The contents of the W register are
loaded in the OPTION register.
This instruction is supported for
code compatibility with PIC16C5X
products. Since OPTION is a
readable/writable register, the
user can directly address it. Using
only register instruction such as
MOVWF.
1
1
To maintain upward compatibil-
ity with future PICmicro® prod-
ucts, do not use this
instruction.
NOP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
No Operation
[ label ] NOP
None
No operation
None
00
0000 0xx0
No operation.
1
1
NOP
0000
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Return from Interrupt
[ label ] RETFIE
None
TOS → PC,
1 → GIE
None
00
0000 0000 1001
Return from Interrupt. Stack is
POPed and Top of Stack (TOS)
is loaded in the PC. Interrupts
are enabled by setting Global
Interrupt Enable bit, GIE
(INTCON<7>). This is a two-
cycle instruction.
1
2
RETFIE
After Interrupt
PC = TOS
GIE = 1
DS40300C-page 116
Preliminary
 2003 Microchip Technology Inc.