Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Want to know the interrupt priority of PIC16f877.

Status
Not open for further replies.

thannara123

Advanced Member level 5
Advanced Member level 5
Joined
Jan 7, 2010
Messages
1,601
Helped
122
Reputation
244
Reaction score
116
Trophy points
1,353
Activity points
10,611
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.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top