I have 2 sensors I'm monitoring as SPI on PORTJ. Right now I'm using one interrupt to handle 2 inputs. This is set up in isr_vectors.c as vector #24.
My question is:
Can I have 2 separate interrupts for PORTJ, or do all inputs on PORTJ share the same interrupt? Now, I use one common interrupt for PORTJ and test the flags registers: PIFJ_PIFj0 and PIFJ_PIFj1 to see if any input has occured.
For my SCI application, each have their own interrupt and that works fine.
All pins in PORTJ share the same interrupt service routine. All interrupt sources in one SCI module (Tx Rx errors) share the same interrupt service routine.