Jim Blahnik

HCS12 Interrupt PORTJ

Discussion created by Jim Blahnik on Nov 19, 2008
Latest reply on Nov 19, 2008 by Daniel Lundin
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

Outcomes