English
Language : 

PIC17C7XX_13 Datasheet, PDF (218/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
MOVPF
Move p to f
Syntax:
[label] MOVPF p,f
Operands:
0  f  255
0  p  31
Operation:
(p)  (f)
Status Affected: Z
Encoding:
010p pppp ffff ffff
Description:
Move data from data memory location
'p' to data memory location 'f'. Location
'f' can be anywhere in the 256 byte data
space (00h to FFh), while 'p' can be 00h
to 1Fh.
Either 'p' or 'f' can be WREG (a useful,
special situation).
MOVPF is particularly useful for transfer-
ring a peripheral register (e.g. the timer
or an I/O port) to a data memory loca-
tion. Both 'f' and 'p' can be indirectly
addressed.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'p'
Process
Data
Write
register 'f'
Example:
MOVPF REG1, REG2
Before Instruction
REG1
=
REG2
=
0x11
0x33
After Instruction
REG1
=
REG2
=
0x11
0x11
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Move WREG to f
[ label ] MOVWF f
0  f  255
(WREG)  (f)
None
0000 0001 ffff ffff
Move data from WREG to register 'f'.
Location 'f' can be anywhere in the 256
byte data space.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'f'
Example:
MOVWF
REG
Before Instruction
WREG = 0x4F
REG = 0xFF
After Instruction
WREG = 0x4F
REG = 0x4F
DS30289C-page 218
 1998-2013 Microchip Technology Inc.