|
PIC18F6525_13 Datasheet, PDF (300/400 Pages) Microchip Technology – 64/80-Pin High-Performance, 64-Kbyte Enhanced Flash Microcontrollers with A/D | |||
|
◁ |
PIC18F6525/6621/8525/8621
MOVFF
Move f to f
Syntax:
Operands:
Operation:
Status Affected:
[ label ] MOVFF fs,fd
0 ï£ fs ï£ 4095
0 ï£ fd ï£ 4095
(fs) ï® fd
None
Encoding:
1st word (source)
2nd word (destin.)
Description:
1100
1111
ffff
ffff
ffff ffffs
ffff ffffd
The contents of source register âfsâ are
moved to destination register âfdâ.
Location of source âfsâ can be anywhere
in the 4096-byte data space (000h to
FFFh) and location of destination âfdâ
can also be anywhere from 000h to
FFFh.
Either source or destination can be W
(a useful special situation).
MOVFF is particularly useful for
transferring a data memory location to a
peripheral register (such as the transmit
buffer or an I/O port).
The MOVFF instruction cannot use the
PCL, TOSU, TOSH or TOSL as the
destination register.
Words:
2
Cycles:
2 (3)
Q Cycle Activity:
Q1
Decode
Decode
Q2
Read
register âfâ
(src)
No
operation
No dummy
read
Q3
Process
Data
No
operation
Q4
No
operation
Write
register âfâ
(dest)
Example:
MOVFF REG1, REG2
Before Instruction
REG1
=
REG2
=
After Instruction
REG1
=
REG2
=
0x33
0x11
0x33
0x33
MOVLB
Move Literal to Low Nibble in BSR
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
[ label ] MOVLB k
0 ï£ k ï£ 255
k ï® BSR
None
0000 0001 kkkk kkkk
The 8-bit literal âkâ is loaded into the
Bank Select Register (BSR).
1
1
Q2
Read literal
âkâ
Q3
Process
Data
Q4
Write
literal âkâ to
BSR
Example:
MOVLB 5
Before Instruction
BSR register =
After Instruction
BSR register =
0x02
0x05
DS39612C-page 300
ï£ 2003-2013 Microchip Technology Inc.
|
▷ |