p16f877 Microchip Technology Inc., p16f877 Datasheet - Page 142

no-image

p16f877

Manufacturer Part Number
p16f877
Description
28/40-pin 8-bit Cmos Flash Microcontrollers
Manufacturer
Microchip Technology Inc.
Datasheet
PIC16F87X
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Description:
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
DS30292C-page 140
Move f
[ label ]
0
d
(f)
Z
The contents of register f are
moved to a destination dependant
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.
Move Literal to W
[ label ]
0
k
None
The eight bit literal ’k’ is loaded
into W register. The don’t cares
will assemble as 0’s.
Move W to f
[ label ]
0
(W)
None
Move data from W register to
register 'f'.
f
k
f
[0,1]
(W)
(destination)
127
127
(f)
255
MOVF f,d
MOVLW k
MOVWF
f
NOP
Syntax:
Operands:
Operation:
Status Affected:
Description:
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
No Operation
[ label ]
None
No operation
None
No operation.
Return from Interrupt
[ label ]
None
TOS
1
None
Return with Literal in W
[ label ]
0
k
TOS
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.
k
GIE
(W);
2001 Microchip Technology Inc.
255
PC,
PC
NOP
RETFIE
RETLW k

Related parts for p16f877