Want to know the interrupt priority of PIC16f877.
I have timer interupt function to run PWM module and an ADC reading function by using ADC interrupt . In which which one has the priority or how do works interrupt ?
is it , first one first and complete nextand the will execute ?
How do i check it or how it work ,
or may i need use higher level of PIC controller .
The 16F877 does not support interrupt priority in hardware. All sources of interrupts cause a jump to address 0x004 but there you can to some degree prioritize them in software by arranging the code to check the interrupt bits in the order you want them. At the end of the ISR, if another interrupt is pending the ISR will be re-entered so if you check the source you want to give highest priority to first, it will be dealt with before later ones.