PIC16C925/926
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
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
Q1
Q2
Q3
Q4
Decode
Read
register
’f’
Process Write
data register ’f’
Example
MOVWF
OPTION_REG
Before Instruction:
OPTION =
W
=
0xFF
0x4F
After Instruction:
OPTION =
W
=
0x4F
0x4F
NOP
No Operation
Syntax:
Operands:
[ label ] NOP
None
Operation:
No operation
Status Affected: None
Encoding:
00
0000 0xx0 0000
Description:
Words:
Cycles:
Q Cycle Activity:
No operation.
1
1
Q1
Q2
Q3
Q4
Decode
No
No
No
Operation Operation Operation
Example
NOP
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.
1
1
To maintain upward compatibility
with future PIC16CXXX products,
do not use this instruction.
2001 Microchip Technology Inc.
Preliminary
DS39544A-page 125