English
Language : 

PIC17C75X Datasheet, PDF (204/320 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers
PIC17C75X
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
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
word 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
DS30264A-page 204
© 1997 Microchip Technology Inc.