Datasheet

PIC17C4X
DS30412C-page 128 1996 Microchip Technology Inc.
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'
Execute Write
register 'f'
Example:
MOVPF REG1, REG2
Before Instruction
REG1 = 0x11
REG2 = 0x33
After Instruction
REG1 = 0x11
REG2 = 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
word data space.
Words: 1
Cycles: 1
Q Cycle Activity:
Q1 Q2 Q3 Q4
Decode Read
register 'f'
Execute Write
register 'f'
Example:
MOVWF REG
Before Instruction
WREG = 0x4F
REG = 0xFF
After Instruction
WREG = 0x4F
REG = 0x4F