|
PIC16F722AT-ISS Datasheet, PDF (190/286 Pages) Microchip Technology – 28-Pin Flash Microcontrollers with nanoWatt XLP Technology | |||
|
◁ |
PIC16(L)F722A/723A
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
DS41417B-page 190
ï£ 2010-2012 Microchip Technology Inc.
|
▷ |