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

PIC18LF8410-I/PTQTP View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC18LF8410-I/PTQTP
Microchip
Microchip Technology 
PIC18LF8410-I/PTQTP Datasheet PDF : 404 Pages
First Prev 331 332 333 334 335 336 337 338 339 340 Next Last
PIC18F6310/6410/8310/8410
ADDWF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
ADD W to Indexed
(Indexed Literal Offset mode)
ADDWF [k] {,d}
0 k 95
d [0,1]
(W) + ((FSR2) + k) dest
N, OV, C, DC, Z
0010 01d0 kkkk kkkk
The contents of W are added to the
contents of the register indicated by
FSR2, offset by the value ‘k’.
If ‘d’ is ‘0’, the result is stored in W. If ‘d’
is ‘1’, the result is stored back in
register ‘f’ (default).
1
1
Q2
Read ‘k’
Q3
Process
Data
Q4
Write to
destination
Example:
ADDWF [OFST] ,0
Before Instruction
W
OFST
FSR2
Contents
of 0A2Ch
After Instruction
= 17h
= 2Ch
= 0A00h
= 20h
W
Contents
of 0A2Ch
= 37h
= 20h
BSF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Bit Set Indexed
(Indexed Literal Offset mode)
BSF [k], b
0 f 95
0b7
1 ((FSR2) + k)<b>
None
1000 bbb0 kkkk kkkk
Bit ‘b’ of the register indicated by FSR2,
offset by the value ‘k’, is set.
1
1
Q2
Read
register ‘f’
Q3
Process
Data
Q4
Write to
destination
Example:
BSF
Before Instruction
FLAG_OFST
FSR2
Contents
of 0A0Ah
After Instruction
Contents
of 0A0Ah
[FLAG_OFST], 7
= 0Ah
= 0A00h
= 55h
= D5h
SETF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Set Indexed
(Indexed Literal Offset mode)
SETF [k]
0 k 95
FFh ((FSR2) + k)
None
0110 1000 kkkk kkkk
The contents of the register indicated
by FSR2, offset by ‘k’, are set to FFh.
1
1
Q2
Read ‘k’
Q3
Process
Data
Q4
Write
register
Example:
SETF
Before Instruction
OFST
=
FSR2
=
Contents
of 0A2Ch
=
After Instruction
Contents
of 0A2Ch
=
[OFST]
2Ch
0A00h
00h
FFh
2004 Microchip Technology Inc.
Preliminary
DS39635A-page 335

Share Link: 

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