English
Language : 

PIC17C7XX_13 Datasheet, PDF (217/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
MOVLR
Move Literal to high nibble in
BSR
Syntax:
[ label ] MOVLR k
Operands:
0  k  15
Operation:
k  (BSR<7:4>)
Status Affected: None
Encoding:
1011 101x kkkk uuuu
Description:
The 4-bit literal 'k' is loaded into the
most significant 4-bits of the Bank
Select Register (BSR). Only the high
4-bits of the Bank Select Register
are affected. The lower half of the
BSR is unchanged. The assembler
will encode the “u” fields as 0.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read literal
'k'
Process
Data
Write
literal 'k' to
BSR<7:4>
Example:
MOVLR 5
Before Instruction
BSR register = 0x22
After Instruction
BSR register = 0x52
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Move Literal to WREG
[ label ] MOVLW k
0  k  255
k  (WREG)
None
1011 0000 kkkk kkkk
The eight-bit literal 'k' is loaded into
WREG.
1
1
Q2
Read
literal 'k'
Q3
Process
Data
Q4
Write to
WREG
Example:
MOVLW
After Instruction
WREG = 0x5A
0x5A
 1998-2013 Microchip Technology Inc.
DS30289C-page 217