HCS12 Interrupt PORTJ

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

HCS12 Interrupt PORTJ

1,620件の閲覧回数
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
ラベル(1)
0 件の賞賛
返信
1 返信

758件の閲覧回数
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 件の賞賛
返信