|
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.
|
▷ |