matrixofdynamism
Advanced Member level 2
In CCS C Compiler it is possible to set a multitude of interrupts and assign an ISR to it. I want to know what happens if multiple interrupts occur at the same time or if another interrupt occurs before the current ISR has not finished execution.
For example, here is a list of some of the possible interrupts:
Analog to digital conversion complete
Analog to digital conversion timeout
Bus collision
Pushbutton
Capture or Compare on unit 1
Capture or Compare on unit 2
Comparator detect
I2C interrupt (only on 14000)
LCD activity
Low voltage detected
Parallel Slave Port data in
Port B any change on B4-B7
What if e.g 'Low voltage detected' interrupt occurs while the 'Analog to digital conversion complete' is still executing?
Will the later interrupts be executed in the order they occured once the current ISR is finish executing?
Is it possible to assign some sort of "index" to all ISRs to tell the PIC which is more important than others?
For example, here is a list of some of the possible interrupts:
Analog to digital conversion complete
Analog to digital conversion timeout
Bus collision
Pushbutton
Capture or Compare on unit 1
Capture or Compare on unit 2
Comparator detect
I2C interrupt (only on 14000)
LCD activity
Low voltage detected
Parallel Slave Port data in
Port B any change on B4-B7
What if e.g 'Low voltage detected' interrupt occurs while the 'Analog to digital conversion complete' is still executing?
Will the later interrupts be executed in the order they occured once the current ISR is finish executing?
Is it possible to assign some sort of "index" to all ISRs to tell the PIC which is more important than others?