|
PIC16F737-I Datasheet, PDF (200/276 Pages) Microchip Technology – 28/40/44-Pin, 8-Bit CMOS Flash Microcontrollers with 10-Bit A/D and nanoWatt Technology | |||
|
◁ |
PIC16F7X7
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move f
[ label ] MOVF f,d
0 ⤠f ⤠127
d â [0,1]
(f) â (destination)
Z
The contents of register âfâ are
moved to a destination dependant
upon the status of âdâ. If d = 0,
the 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.
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move Literal to W
[ label ] MOVLW k
0 ⤠k ⤠255
k â (W)
None
The eight-bit literal âkâ is loaded
into W register. The donât cares
will assemble as â0âs.
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move W to f
[ label ] MOVWF f
0 ⤠f ⤠127
(W) â (f)
None
Move data from W register to
register âfâ.
NOP
Syntax:
Operands:
Operation:
Status Affected:
Description:
No Operation
[ label ] NOP
None
No operation
None
No operation.
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Return from Interrupt
[ label ] RETFIE
None
TOS â PC,
1 â GIE
None
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return with Literal in W
[ label ] RETLW k
0 ⤠k ⤠255
k â (W);
TOS â PC
None
The W register is loaded with the
eight-bit literal âkâ. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
DS30498C-page 198
 2004 Microchip Technology Inc.
|
▷ |