HCS12 Interrupt PORTJ

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

HCS12 Interrupt PORTJ

1,206 Views
jimbjimb
Contributor I
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.

Thank you.

J F Blahnik
Labels (1)
0 Kudos
1 Reply

344 Views
Lundin
Senior Contributor IV
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.
0 Kudos