DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC18F010T-I/SN View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC18F010T-I/SN
Microchip
Microchip Technology 
PIC18F010T-I/SN Datasheet PDF : 176 Pages
First Prev 101 102 103 104 105 106 107 108 109 110 Next Last
13.1 Instruction Set
ADDLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
ADD literal to WREG
[ label ] ADDLW k
0 k 255
(WREG) + k WREG
N,OV, C, DC, Z
0000 1111 kkkk kkkk
The contents of WREG are added
to the 8-bit literal kand the result is
placed in WREG.
1
1
Q2
Read
literal k
Q3
Process
Data
Q4
Write to
WREG
Example:
ADDLW 0x15
Before Instruction
WREG = 0x10
N
=?
OV
=?
C
=?
DC
=?
Z
=?
After Instruction
WREG =
N
=
OV
=
C
=
DC
=
Z
=
0x25
0
0
0
0
0
PIC18F010/020
ADDWF
ADD WREG to f
Syntax:
[ label ] ADDWF f [,d] [,a]
Operands:
0 f 255
d [0,1]
a [0,1]
Operation:
(WREG) + (f) dest
Status Affected: N,OV, C, DC, Z
Encoding:
0010 01da ffff ffff
Description:
Add WREG to register f. If dis 0,
the result is stored in WREG. If d
is 1, the result is stored back in reg-
ister 'f' (default). If ais 0, the
Access Bank will be selected. If a
is 1, the Bank will be selected as
per the BSR value.
Words:
1
Cycles:
1
Q Cycle Activity:
Q1
Decode
Q2
Read
register f
Q3
Process
Data
Q4
Write to
destination
Example:
ADDWF
Before Instruction
WREG = 0x17
REG = 0xC2
N
=?
OV
=?
C
=?
DC
=?
Z
=?
After Instruction
WREG =
REG =
N
=
OV
=
C
=
DC
=
Z
=
0xD9
0xC2
1
0
0
0
0
REG, W
2001 Microchip Technology Inc.
Preliminary
DS41142A-page 101

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]