thannara123
Advanced Member level 5
I am writing two interrupt function in MPLAB XC compailer for PIC16f877a as follows
I tried the above code as interrupt but am getting error as follows
multiple interrupt functions (_adc and _timer_isr) defined at interrupt level 1
How can i set the priority or how to write multiple Interrupt Functions ?
C:
void interrupt timer_isr() // timer Interrupt 1
{
if(TMR2IF==1)
{
// function content
}
void __interrupt() adc_value(void) // ADC Interrupt 1
{
if(ADIF==1)
// function content
}
void main()
{
}
I tried the above code as interrupt but am getting error as follows
multiple interrupt functions (_adc and _timer_isr) defined at interrupt level 1
How can i set the priority or how to write multiple Interrupt Functions ?