PIC18F2480-E/SP Microchip Technology, PIC18F2480-E/SP Datasheet - Page 6

no-image

PIC18F2480-E/SP

Manufacturer Part Number
PIC18F2480-E/SP
Description
IC,MICROCONTROLLER,8-BIT,PIC CPU,CMOS,DIP,28PIN,PLASTIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18F2480-E/SP

Rohs Compliant
YES
Core Processor
PIC
Core Size
8-Bit
Speed
25MHz
Connectivity
CAN, I²C, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, HLVD, POR, PWM, WDT
Number Of I /o
25
Program Memory Size
16KB (8K x 16)
Program Memory Type
FLASH
Eeprom Size
256 x 8
Ram Size
768 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)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With
DVA18XP280 - DEVICE ADAPTER 18F2220 PDIP 28LD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
PIC18F2480/2580/4480/4580
EXAMPLE 2:
DS80496C-page 6
#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 */
2. C Language Programming:
// Handle low priority interrupts.
// Handle high priority interrupts.
_asm goto MyHighISR _endasm
_asm goto MyLowISR _endasm
The exact work around depends on the
compiler in use. Consult the C compiler’s
documentation for details.
If using the Microchip MPLAB
Compiler, define both high and low-priority
interrupt handler functions as “low priority” by
using the pragma interruptlow directive.
This directive instructs the compiler to not use
INTERRUPT SERVICE ROUTINE IN C
®
C18 C
the RETFIE FAST instruction. If the proper
high-priority interrupt bit is set in the IPRx
register, the interrupt is treated as high priority
in spite of the pragma interruptlow
directive.
The code segment, shown in Example 2,
demonstrates the work around using the C18
compiler.
 2010 Microchip Technology Inc.

Related parts for PIC18F2480-E/SP