Information
PIC18F2525/2620/4525/4620
DS80224E-page 8 © 2008 Microchip Technology Inc.
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:
EXAMPLE 4:
#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)
{
...
}