|
PIC16F688 Datasheet, PDF (126/174 Pages) Microchip Technology – 14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology | |||
|
◁ |
PIC16F688
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Move W to f
[ label ] MOVWF f
0 ⤠f ⤠127
(W) â (f)
None
00 0000 1fff ffff
Move data from W register to
register âfâ.
1
1
MOVWF OPTION
Before Instruction
OPTION =
W
=
After Instruction
OPTION =
W
=
0xFF
0x4F
0x4F
0x4F
Inclusive OR Literal with W
[ label ] IORLW k
0 ⤠k ⤠255
(W) .OR. k â (W)
Z
The contents of the W register are
ORâed with the eight-bit literal âkâ.
The result is placed in the W
register.
IORWF
Inclusive OR W with f
Syntax:
Operands:
Operation:
Status Affected:
Description:
[ label ] IORWF f,d
0 ⤠f ⤠127
d â [0,1]
(W) .OR. (f) â (destination)
Z
Inclusive OR the W register with
register âfâ. If âdâ is â0â, the result is
placed in the W register. If âdâ is
â1â, the result is placed back in
register âfâ.
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Move Literal to W
[ label ] MOVLW k
0 ⤠k ⤠255
k â (W)
None
11 00xx kkkk kkkk
The eight 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
NOP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
No Operation
[ label ] NOP
None
No operation
None
00 0000
No operation.
1
1
NOP
0xx0
0000
DS41203B-page 124
Preliminary
 2004 Microchip Technology Inc.
|
▷ |