PIC18LF2410T-I/SO Microchip Technology, PIC18LF2410T-I/SO Datasheet - Page 7

IC MCU FLASH 8KX16 28SOIC

PIC18LF2410T-I/SO

Manufacturer Part Number
PIC18LF2410T-I/SO
Description
IC MCU FLASH 8KX16 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 18Fr

Specifications of PIC18LF2410T-I/SO

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
16KB (8K x 16)
Program Memory Type
FLASH
Ram Size
768 x 8
Voltage - Supply (vcc/vdd)
2 V ~ 5.5 V
Data Converters
A/D 10x10b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
28-SOIC (7.5mm Width)
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
EXAMPLE 3:
EXAMPLE 4:
© 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 */
#pragma code high_vector_section=0x8
void high_vector (void)
{
}
void high_vector_branch (void)
{
}
#pragma interrupt high_isr
void high_isr (void)
{
}
_asm
_endasm
_asm
_endasm
...
around depends on the compiler in use. Please
refer to your C compiler documentation for
details.
If using the Microchip MPLAB
define both high and low priority interrupt han-
dler functions as “low priority” by using the
pragma interruptlow
An optimized C18 version is also provided in
Example 4. This example illustrates how it
reduces the instruction cycle count from
10 cycles to 3:
// Handle low priority interrupts.
// Handle high priority interrupts.
_asm goto MyHighISR _endasm
_asm goto MyLowISR _endasm
CALL high_vector_branch, 1
POP
GOTO high_isr
®
directive.
C18 C Compiler,
PIC18F2410/2510/4410/4510
This
directive instructs the compiler to not use the
RETFIE FAST instruction. If the proper high
priority interrupt bit is set in the IPRx register,
then the interrupt is treated as high priority in
spite of the pragma interruptlow directive.
The code segment shown in Example 3
demonstrates the work around using the C18
compiler:
DS80277C-page 7

Related parts for PIC18LF2410T-I/SO