PIC18F2510 MICROCHIP [Microchip Technology], PIC18F2510 Datasheet - Page 305

no-image

PIC18F2510

Manufacturer Part Number
PIC18F2510
Description
28/40/44-PIN FLASH MICROCONTROLLERS WITH 10-BIT A/D AND NANO WATT TECHNOLOGY
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC18F2510-I/ML
Manufacturer:
MICORCHIP
Quantity:
662
Part Number:
PIC18F2510-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC18F2510-I/SP
Manufacturer:
TM
Quantity:
50 000
Part Number:
PIC18F2510T-I/ML
Manufacturer:
MICORCHIP
Quantity:
2 100
SUBFSR
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example:
 2004 Microchip Technology Inc.
Q Cycle Activity:
Before Instruction
After Instruction
Decode
FSR2
FSR2
Q1
=
=
register ‘f’
SUBFSR f, k
0
f
FSR(f) – k
None
The 6-bit literal ‘k’ is subtracted from
the contents of the FSR specified by
‘f’.
1
1
SUBFSR 2, 23h
Subtract Literal from FSR
Read
1110
Q2
03FFh
03DCh
[ 0, 1, 2 ]
k
63
1001
Process
FSRf
Data
Q3
ffkk
destination
Write to
kkkk
Q4
Preliminary
SUBULNK
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
Q Cycle Activity:
Before Instruction
After Instruction
Operation
PIC18F2X1X/4X1X
Decode
No
FSR2
PC
FSR2
PC
Q1
Subtract Literal from FSR2 and Return
SUBULNK k
0
FSR2 – k
(TOS)
The 6-bit literal ‘k’ is subtracted from the
contents of the FSR2. A RETURN is then
executed by loading the PC with the TOS.
The instruction takes two cycles to
execute; a NOP is performed during the
second cycle.
This may be thought of as a special case of
the SUBFSR instruction, where f = 3 (binary
‘11’); it operates only on FSR2.
1
2
1110
=
=
=
=
k
register ‘f’
Operation
SUBULNK 23h
Read
63
No
Q2
03FFh
0100h
03DCh
(TOS)
PC
FSR2
1001
Operation
Process
Data
No
Q3
DS39636A-page 303
11kk
destination
Operation
Write to
kkkk
No
Q4

Related parts for PIC18F2510