English
Language : 

PIC17C75X Datasheet, PDF (202/320 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers
PIC17C75X
MOVFP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Move f to p
[label] MOVFP f,p
0 ≤ f ≤ 255
0 ≤ p ≤ 31
(f) → (p)
None
011p pppp ffff ffff
Move data from data memory location 'f'
to data memory location 'p'. Location 'f'
can be anywhere in the 256 word data
space (00h to FFh) while 'p' can be 00h
to 1Fh.
Either ’p' or 'f' can be WREG (a useful
special situation).
MOVFP is particularly useful for transfer-
ring a data memory location to a periph-
eral register (such as the transmit buffer
or an I/O port). Both 'f' and 'p' can be
indirectly addressed.
1
1
Q2
Read
register 'f'
Q3
Process
Data
Q4
Write
register 'p'
Example:
MOVFP REG1, REG2
Before Instruction
REG1
=
REG2
=
0x33,
0x11
After Instruction
REG1
=
REG2
=
0x33,
0x33
MOVLB
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Move Literal to low nibble in BSR
[ label ] MOVLB k
0 ≤ k ≤ 15
k → (BSR<3:0>)
None
1011 1000 uuuu kkkk
The four bit literal 'k' is loaded in the
Bank Select Register (BSR). Only the
low 4-bits of the Bank Select Register
are affected. The upper half of the BSR
is unchanged. The assembler will
encode the “u” fields as '0'.
1
1
Q2
Read
literal 'k'
Q3
Process
Data
Q4
Write literal
'k' to
BSR<3:0>
Example:
MOVLB 5
Before Instruction
BSR register = 0x22
After Instruction
BSR register = 0x25 (Bank 5)
DS30264A-page 202
© 1997 Microchip Technology Inc.