English
Language : 

PIC17C4X Datasheet, PDF (127/240 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
PIC17C4X
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
Decode
Read literal
'k:u'
Q3
Execute
Example:
MOVLR 5
Q4
Write
literal 'k' to
BSR<7:4>
Before Instruction
BSR register = 0x22
After Instruction
BSR register = 0x52
Note: This instruction is not available in the
PIC17C42 device.
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
Execute
Q4
Write to
WREG
Example:
MOVLW
After Instruction
WREG = 0x5A
0x5A
© 1996 Microchip Technology Inc.
DS30412C-page 127