DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16F1512T-E/SO View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F1512T-E/SO
Microchip
Microchip Technology 
PIC16F1512T-E/SO Datasheet PDF : 360 Pages
First Prev 271 272 273 274 275 276 277 278 279 280 Next Last
PIC16(L)F1512/3
MOVIW
Syntax:
Operands:
Operation:
Status Affected:
Move INDFn to W
[ label ] MOVIW ++FSRn
[ label ] MOVIW --FSRn
[ label ] MOVIW FSRn++
[ label ] MOVIW FSRn--
[ label ] MOVIW k[FSRn]
n [0,1]
mm [00,01, 10, 11]
-32 k 31
INDFn W
Effective address is determined by
• FSR + 1 (preincrement)
• FSR - 1 (predecrement)
• FSR + k (relative offset)
After the Move, the FSR value will be
either:
• FSR + 1 (all increments)
• FSR - 1 (all decrements)
• Unchanged
Z
Mode
Syntax
mm
Preincrement
++FSRn
00
Predecrement
--FSRn
01
Postincrement
FSRn++
10
Postdecrement
FSRn--
11
Description:
This instruction is used to move data
between W and one of the indirect
registers (INDFn). Before/after this
move, the pointer (FSRn) is updated by
pre/post incrementing/decrementing it.
Note: The INDFn registers are not
physical registers. Any instruction that
accesses an INDFn register actually
accesses the register at the address
specified by the FSRn.
FSRn is limited to the range 0000h -
FFFFh. Incrementing/decrementing it
beyond these bounds will cause it to
wrap-around.
MOVLB
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move literal to BSR
[ label ] MOVLB k
0 k 15
k BSR
None
The 5-bit literal ‘k’ is loaded into the
Bank Select Register (BSR).
MOVLP
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move literal to PCLATH
[ label ] MOVLP k
0 k 127
k PCLATH
None
The 7-bit literal ‘k’ is loaded into the
PCLATH register.
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
Move literal to W
[ label ] MOVLW k
0 k 255
k (W)
None
The 8-bit literal ‘k’ is loaded into W
register. The “don’t cares” will
assemble as ‘0’s.
1
1
MOVLW 0x5A
After Instruction
W = 0x5A
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
Move W to f
[ label ] MOVWF f
0 f 127
(W) (f)
None
Move data from W register to register
‘f’.
1
1
MOVWF OPTION_REG
Before Instruction
OPTION_REG = 0xFF
W = 0x4F
After Instruction
OPTION_REG = 0x4F
W = 0x4F
2012-2014 Microchip Technology Inc.
DS40001624C-page 277

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]