PIC18C242 MICROCHIP [Microchip Technology], PIC18C242 Datasheet - Page 216

no-image

PIC18C242

Manufacturer Part Number
PIC18C242
Description
High-Performance Microcontrollers with 10-Bit A/D
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18C242-I/SO
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC18C242/JW
Manufacturer:
NS
Quantity:
10
PIC18CXX2
MOVFF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
1st word (source)
2nd word (destin.)
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
DS39026B-page 216
Before Instruction
After Instruction
Decode
Decode
REG1
REG2
REG1
REG2
Q1
No dummy
register ’f’
operation
Move f to f
[ label ]
0
0
(f
None
The contents of source register ’f
are moved to destination register
’f
anywhere in the 4096 byte data
space (000h to FFFh), and location
of destination ’f
where from 000h to FFFh.
Either source or destination can be
WREG (a useful special situation).
MOVFF is particularly useful for
transferring a data memory location
to a peripheral register (such as the
transmit buffer or an I/O port).
The MOVFF instruction cannot use
the PCL, TOSU, TOSH or TOSL as
the destination register
2
2 (3)
MOVFF
d
Read
s
(src)
read
’. Location of source ’f
1100
1111
)
No
Q2
=
=
=
=
f
f
s
d
f
d
4095
0x33
0x11
0x33,
0x33
4095
MOVFF f
REG1, REG2
ffff
ffff
operation
Process
Data
No
d
Q3
’ can also be any-
s
,f
ffff
ffff
d
register ’f’
s
operation
’ can be
(dest)
Write
No
Q4
fff
fff
f
f
Preliminary
s
s
d
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
MOVLB
Before Instruction
After Instruction
Decode
BSR register=
BSR register=
Q1
Read literal
Move literal to low nibble in BSR
The 8-bit literal ’k’ is loaded into
[ label ]
0
k
None
the Bank Select Register (BSR).
1
1
MOVLB
0000
Q2
’k’
k
BSR
7/99 Microchip Technology Inc.
255
0x02
0x05
5
MOVLB k
0001
Process
Data
Q3
kkkk
literal ’k’ to
Write
BSR
Q4
kkkk

Related parts for PIC18C242