PIC12F639 Microchip Technology, PIC12F639 Datasheet - Page 138

no-image

PIC12F639

Manufacturer Part Number
PIC12F639
Description
(PIC12F635 / PIC12F636 / PIC12F639) 8/14-PIN FLASH-BASED / 8-BIT CMOS MICROCONTROLLERS WITH NANOWATT TECHNOLOGY
Manufacturer
Microchip Technology
Datasheet
PIC12F635/PIC16F636/639
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
DS41232B-page 136
Move f
[ label ]
0
d
(f)
Z
The contents of register ‘f’ are
moved to a destination dependent
upon the status of ‘d’. If ‘d’ = 0,
destination is W register. If d = 1,
the destination is file register ‘f’
itself. d = 1 is useful to test a file
register, since status flag Z is
affected.
1
1
After Instruction
Move Literal to W
[ label ]
0
k
None
The eight-bit literal ‘k’ is loaded
into the W register. The “don’t
cares” will assemble as ‘0’s
1
1
After Instruction
MOVF
MOVLW
00
11
f
k
[0,1]
(W)
(dest)
127
255
W = value in FSR register
Z
W
MOVF f,d
MOVLW k
FSR,
0x5A
1000
00xx
= 1
=
0
0x5A
dfff
kkkk
.
ffff
kkkk
Preliminary
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
NOP
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
Move W to f
[ label ]
0
(W)
None
Move data from W register to
register ‘f’.
1
1
Before Instruction
After Instruction
No Operation
[ label ]
None
No operation
None
No operation.
1
1
MOVWF
NOP
00
00
f
© 2005 Microchip Technology Inc.
127
(f)
OPTION =
W
OPTION =
W
MOVWF
NOP
OPTION
0000
0000
=
=
1fff
0xx0
f
0xFF
0x4F
0x4F
0x4F
ffff
0000

Related parts for PIC12F639