DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC17C42AT View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC17C42AT Datasheet PDF : 240 Pages
First Prev 121 122 123 124 125 126 127 128 129 130 Next Last
PIC17C4X
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
Execute
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
Execute
Q4
Write
register 'f'
Example:
MOVWF
REG
Before Instruction
WREG = 0x4F
REG = 0xFF
After Instruction
WREG = 0x4F
REG = 0x4F
DS30412C-page 128
© 1996 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]