PIC16C923-04I/CL Microchip Technology, PIC16C923-04I/CL Datasheet - Page 130

no-image

PIC16C923-04I/CL

Manufacturer Part Number
PIC16C923-04I/CL
Description
8-Bit CMOS Microcontroller with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C9XX
MOVF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS30444E - page 130
Move f
[ label ]
0
d
(f)
Z
The contents of register f is moved to a
destination dependant 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 regis-
ter 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 W
register
as 0’s.
1
1
After Instruction
Decode
MOVF
Decode
MOVLW
Q1
Q1
00
11
f
k
[0,1]
(W)
(destination)
.
127
255
The don’t cares will assemble
W = value in FSR register
Z = 1
W
MOVF f,d
MOVLW k
literal 'k'
register
1000
00xx
FSR, 0
0x5A
Read
Read
Q2
Q2
'f'
=
0x5A
Process
Process
dfff
kkkk
data
data
Q3
Q3
destination
Write to
ffff
kkkk
Write to
Q4
Q4
W
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Move W to f
[ label ]
0
(W)
None
Move data from W register to register
'f'
1
1
Before Instruction
After Instruction
.
MOVWF
Decode
Q1
00
f
1997 Microchip Technology Inc.
127
(f)
OPTION =
W
OPTION =
W
MOVWF
register
0000
Read
Q2
OPTION_REG
'f'
=
=
1fff
Process
data
Q3
f
0xFF
0x4F
0x4F
0x4F
register 'f'
ffff
Write
Q4

Related parts for PIC16C923-04I/CL