PIC16F688 Microchip Technology Inc., PIC16F688 Datasheet - Page 136

no-image

PIC16F688

Manufacturer Part Number
PIC16F688
Description
Manufacturer
Microchip Technology Inc.
Datasheet
PIC16F688
MOVF
Move f
Syntax:
[ label ]
MOVF f,d
0 ≤ f ≤ 127
Operands:
d ∈ [0,1]
(f) → (dest)
Operation:
Status Affected:
Z
Description:
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.
Words:
1
Cycles:
1
Example:
MOVF
FSR, 0
After Instruction
W
=
register
Z
=
1
MOVLW
Move literal to W
Syntax:
[ label ]
MOVLW k
0 ≤ k ≤ 255
Operands:
k → (W)
Operation:
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
DS41203D-page 134
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
value in FSR
NOP
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 =
0xFF
W
=
0x4F
After Instruction
OPTION =
0x4F
W
=
0x4F
No Operation
[ label ]
NOP
None
No operation
None
No operation.
1
1
NOP
© 2007 Microchip Technology Inc.

Related parts for PIC16F688