Want to know the interrupt priority of PIC16f877.

thannara123

Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,580
Helped
122
Reputation
244
Reaction score
114
Trophy points
1,353
Location
India
Activity points
10,387
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.

Brian.
 

Similar threads

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