PIC18F2515-E/SP Microchip Technology, PIC18F2515-E/SP Datasheet - Page 7

IC MCU FLASH 24KX16 28-DIP

PIC18F2515-E/SP

Manufacturer Part Number
PIC18F2515-E/SP
Description
IC MCU FLASH 24KX16 28-DIP
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2515-E/SP

Core Processor
PIC
Core Size
8-Bit
Speed
40MHz
Connectivity
I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
48KB (24K x 16)
Program Memory Type
FLASH
Ram Size
3.8K x 8
Voltage - Supply (vcc/vdd)
4.2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 125°C
Package / Case
28-DIP (0.300", 7.62mm)
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
EXAMPLE 3:
© 2007 Microchip Technology Inc.
2. C Language Programming: The exact work
#pragma interruptlow MyLowISR
void MyLowISR(void)
{
}
// Although MyHighISR is a high priority interrupt, use interruptlow pragma so that
// the compiler will not use retfie FAST.
#pragma interruptlow MyHighISR
void MyHighISR(void)
{
}
#pragma code highVector=0x08
void HighVector (void)
{
}
#pragma code /* return to default code section */
#pragma code lowVector=0x18
void LowVector (void)
{
}
#pragma code /* return to default code section */
around depends on the compiler in use. Please
refer to your C compiler documentation for
details.
If using the Microchip MPLAB
piler, define both high and low priority interrupt
handler functions as “low priority” by using the
pragma interruptlow directive. This direc-
tive instructs the compiler to not use the
RETFIE FAST instruction. If the proper high
priority interrupt bit is set in the IPRx register,
// Handle low priority interrupts.
// Handle high priority interrupts.
_asm goto MyHighISR _endasm
_asm goto MyLowISR _endasm
®
C18 C Com-
PIC18F2515/2610/4515/4610
Date Codes that pertain to this issue:
All engineering and production devices.
then the interrupt is treated as high priority in
spite
directive.
The code segment shown in Example 3
demonstrates the work around using the C18
compiler:
of
the
pragma interruptlow
DS80199E-page 7

Related parts for PIC18F2515-E/SP