English
Language : 

PIC17C7XX Datasheet, PDF (216/328 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
Decode
Q2
Read
register 'p'
Q3
Process
Data
Q4
Write
register 'f'
Example:
MOVPF REG1, REG2
Before Instruction
REG1
=
REG2
=
0x11
0x33
After Instruction
REG1
=
REG2
=
0x11
0x11
MOVWF
Move WREG to f
Syntax:
[ label ] MOVWF f
Operands:
0 ≤ f ≤ 255
Operation:
(WREG) → (f)
Status Affected: None
Encoding:
0000 0001 ffff ffff
Description:
Move data from WREG to register 'f'.
Location 'f' can be anywhere in the 256
byte data space.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
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
DS30289A-page 216
© 1998 Microchip Technology Inc.