PIC18F2682-E/SP Microchip Technology, PIC18F2682-E/SP Datasheet - Page 94

no-image

PIC18F2682-E/SP

Manufacturer Part Number
PIC18F2682-E/SP
Description
80KB, Flash, 3328bytes-RAM, 25I/O, 8-bit Family,nanoWatt,ECAN 28 SPDIP .300in TU
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2682-E/SP

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
80KB (40K x 16)
Program Memory Type
FLASH
Eeprom Size
1K x 8
Ram Size
3.25K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 8x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
Processor Series
PIC18F
Core
PIC
Data Bus Width
8 bit
Data Ram Size
3.25 KB
Interface Type
EUSART, I2C, MSSP, SPI
Maximum Clock Frequency
40 MHz
Number Of Programmable I/os
28
Number Of Timers
4
Maximum Operating Temperature
+ 125 C
Mounting Style
Through Hole
3rd Party Development Tools
52715-96, 52716-328, 52717-734, 52712-325, EWPIC18
Development Tools By Supplier
PG164130, DV164035, DV244005, DV164005, PG164120, DV164136
Minimum Operating Temperature
- 40 C
On-chip Adc
10 bit, 8 Channel
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / Rohs Status
 Details
PIC18F2682/2685/4682/4685
FIGURE 5-8:
DS39761C-page 94
EXAMPLE INSTRUCTION: ADDWF, f, d, a (Opcode: 0010 01da ffff ffff)
When a = 0 and f ≥ 60h:
The instruction executes in
Direct Forced mode. ‘f’ is
interpreted as a location in the
Access RAM between 060h
and 0FFh. This is the same as
the SFRs, or locations F60h to
0FFh (Bank 15) of data
memory.
Locations below 60h are not
available in this addressing
mode.
When a = 0 and f ≤ 5Fh:
The instruction executes in
Indexed Literal Offset mode. ‘f’
is interpreted as an offset to the
address value in FSR2. The
two are added together to
obtain the address of the target
register for the instruction. The
address can be anywhere in
the data memory space.
Note that in this mode, the
correct syntax is now:
ADDWF [k], d
where ‘k’ is the same as ‘f’.
When a = 1 (all values of f):
The instruction executes in
Direct mode (also known as
Direct Long mode). ‘f’ is
interpreted as a location in
one of the 16 banks of the data
memory space. The bank is
designated by the Bank Select
Register (BSR). The address
can be in any implemented
bank in the data memory
space.
COMPARING ADDRESSING OPTIONS FOR BIT-ORIENTED AND
BYTE-ORIENTED INSTRUCTIONS (EXTENDED INSTRUCTION SET ENABLED)
FFFh
FFFh
FFFh
F00h
F60h
F00h
F60h
000h
060h
080h
100h
F00h
F60h
000h
080h
100h
000h
080h
100h
Data Memory
Data Memory
Data Memory
Bank 14
Bank 15
Bank 15
Bank 14
Bank 15
Bank 14
through
Bank 0
Bank 0
through
through
Bank 1
Bank 1
Bank 0
Bank 1
SFRs
SFRs
SFRs
00000000
001001da
001001da
BSR
Access RAM
FSR2H
© 2009 Microchip Technology Inc.
ffffffff
ffffffff
FSR2L
00h
60h
FFh
Valid Range
for ‘f’

Related parts for PIC18F2682-E/SP