Information
2010 Microchip Technology Inc. DS80496C-page 7
PIC18F2480/2580/4480/4580
An optimized C18 version, illustrating how to
reduce the instruction cycle count to three, is
provided in Example 3.
Affected Silicon Revisions
EXAMPLE 3: OPTIMIZED INTERRUPT SERVICE ROUTINE
A1 B0 B2
X
#pragma code high_vector_section=0x8
void high_vector (void)
{
_asm
CALL high_vector_branch, 1
_endasm
}
void high_vector_branch (void)
{
_asm
POP
GOTO high_isr
_endasm
}
#pragma interrupt high_isr
void high_isr (void)
{
...
}