English
Language : 

PIC16F631_08 Datasheet, PDF (224/306 Pages) Microchip Technology – 20-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology
PIC16F631/677/685/687/689/690
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
Move f
[ label ] MOVF f,d
0 ≤ f ≤ 127
d ∈ [0,1]
(f) → (dest)
Z
The contents of register ‘f’ is
moved to a destination dependent
upon the status of ‘d’. If d = 0,
destination is W register. If d = 1,
the destination is file register ‘f’
itself. d = 1 is useful to test a file
register since status flag Z is
affected.
1
1
MOVF FSR, 0
After Instruction
W = value in FSR
register
Z= 1
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
Move W to f
[ label ] MOVWF f
0 ≤ f ≤ 127
(W) → (f)
None
Move data from W register to
register ‘f’.
1
1
MOVW OPTION
F
Before Instruction
OPTION =
W
=
After Instruction
OPTION =
W
=
0xFF
0x4F
0x4F
0x4F
MOVLW
Move literal to W
Syntax:
[ label ] MOVLW k
Operands:
0 ≤ k ≤ 255
Operation:
k → (W)
Status Affected: None
Description:
The eight-bit literal ‘k’ is loaded into
W register. The “don’t cares” will
assemble as ‘0’s.
Words:
1
Cycles:
1
Example:
MOVLW 0x5A
After Instruction
W = 0x5A
NOP
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
No Operation
[ label ] NOP
None
No operation
None
No operation.
1
1
NOP
DS41262E-page 222
© 2008 Microchip Technology Inc.