English
Language : 

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.