Single ISR for different interrupt sources

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

Single ISR for different interrupt sources

ソリューションへジャンプ
3,298件の閲覧回数
keyboardcowboy
Contributor I

How can I set a single interrupt handler for interrupts generated from 2 different ports?. I have interrupts enabled on pins PTD7, and PTE7 on MK64FN1M0VLQ12, but I want to execute the same ISR when either interrupt happens, and I know that both interrupts cannot happen at the same time (they happen one after the other). The component inspector in ProcessorExpert doesn't let me change the name of the Interrupt handler (see picture below)Capture.PNG

I want to set both PORTD IRQ HANDLER and PORTE IRQ HANDLER to be the same (lets say updateCounter)

0 件の賞賛
返信
1 解決策
3,281件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @keyboardcowboy 

PortD and PortE  have different vectors , and they cannot assign the same ISR for the two interrupts. I have tried this with Codewarriror and KDS.

danielchen_0-1612421177810.png

I would suggest you do the same thing in the PORTD IRQ HANDLER and PORTE IRQ HANDLER.

 

Regards

Daniel

元の投稿で解決策を見る

タグ(1)
0 件の賞賛
返信
1 返信
3,282件の閲覧回数
danielchen
NXP TechSupport
NXP TechSupport

Hi @keyboardcowboy 

PortD and PortE  have different vectors , and they cannot assign the same ISR for the two interrupts. I have tried this with Codewarriror and KDS.

danielchen_0-1612421177810.png

I would suggest you do the same thing in the PORTD IRQ HANDLER and PORTE IRQ HANDLER.

 

Regards

Daniel

タグ(1)
0 件の賞賛
返信