English
Language : 

PIC18FXX39 Datasheet, PDF (236/322 Pages) Microchip Technology – Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel
PIC18FXX39
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.)
1100
1111
ffff
ffff
ffff ffffs
ffff ffffd
Description:
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 any-
where 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.
Note:
The MOVFF instruction
should not be used to mod-
ify interrupt settings while
any interrupt is enabled.
See Section 8.0 for more
information.
Words:
2
Cycles:
2 (3)
Q Cycle Activity:
Q1
Q2
Decode
Read
register 'f'
(src)
Decode
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:
[ 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).
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Decode
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
DS30485B-page 236
Preliminary
 2002-2013 Microchip Technology Inc.