HCS12 Interrupt PORTJ

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

HCS12 Interrupt PORTJ

1,623 次查看
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 回复

761 次查看
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 项奖励
回复