Interrupts PIC18-MPLAB - How to implement 3 interrupts ?

Status
Not open for further replies.

Neyolight

Full Member level 5
Joined
Aug 29, 2011
Messages
306
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
World
Activity points
3,624
HI all
Could someone explain what lines "high_vector=0x08" and "low_vector=0x18" are doing? What are the 2 hexadecimal numbers for?

Could I have 2 high priority interrupts looking at different things in the code?

Thanks :smile:

Code:
#pragma code high_vector=0x08

void    high_vector(void)
{
   _asm GOTO high_isr _endasm
}

#pragma code low_vector=0x18

void    low_vector(void)
{
   _asm GOTO low_isr _endasm
}
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…