English
Language : 

PIC16F627A_05 Datasheet, PDF (126/180 Pages) Microchip Technology – Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F627A/628A/648A
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®
products, 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
DS40044D-page 124
© 2005 Microchip Technology Inc.