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

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
MOVLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
7/99 Microchip Technology Inc.
After Instruction
Decode
WREG
Q1
=
Move literal to WREG
[ label ]
0
k
None
The eight bit literal ’k’ is loaded into
WREG.
1
1
MOVLW
literal ’k’
Read
0000
Q2
0x5A
k
WREG
255
MOVLW k
1110
0x5A
Process
Data
Q3
kkkk
Write to
WREG
Q4
kkkk
Preliminary
MOVWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
Before Instruction
After Instruction
Decode
WREG
REG
WREG
REG
Q1
=
=
=
=
register ’f’
Move WREG to f
[ label ]
0
a
(WREG)
None
Move data from WREG to register
’f’. Location ’f’ can be anywhere in
the 256 byte bank. If ’a’ is 0, the
Access Bank will be selected, over-
riding the BSR value. If ’a’ = 1,
then the bank will be selected as
per the BSR value (default).
1
1
MOVWF
Read
0110
Q2
0x4F
0xFF
0x4F
0x4F
f
[0,1]
PIC18CXX2
255
MOVWF
REG, 0
111a
f
Process
Data
Q3
DS39026B-page 217
ffff
f,a
register ’f’
Write
Q4
ffff

Related parts for PIC18C242