Interrupt vector source

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

Interrupt vector source

1,701件の閲覧回数
jetty_1012
Contributor II

Hello,

According to the reference manual, there're 4 interrupt vectors, and each contains 8 interrupt sources.

I want to configure Req[25] and Req[29], and they both map to SIUL_3_IRQn, which means they use the same handler. How do I distinguish them?

jetty_1012_2-1690446905336.png

jetty_1012_3-1690447096918.png

Thanks.

0 件の賞賛
返信
5 返答(返信)

1,692件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

You need to read SIU status flag in the interrupt service routine to distinguish which one of eight EIRQ sources caused an interrupt.

davidtosenovjan_0-1690457471338.png

 

0 件の賞賛
返信

1,667件の閲覧回数
jetty_1012
Contributor II

@davidtosenovjan 

Thanks for you reply.

What about this? I just added two channels. Each channel has an IcuSignalNotification. I write two different functions and set to IcuSignalNotification respectively, so that I could distinguish them based on different notifications.

jetty_1012_0-1690523720244.png

jetty_1012_2-1690523769301.png

jetty_1012_1-1690523736881.png

#interrupt

0 件の賞賛
返信

1,659件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

I am sorry, but I don't understand relation to previous question.

0 件の賞賛
返信

1,643件の閲覧回数
jetty_1012
Contributor II

@davidtosenovjan 

Okay. I'll try to make it clear.
My requirement is, when Req[25] causes an interrupt, I need function A to be called. And when Req[29] causes an interrupt, and I need function B to be called.

So, is it right if I configured as blew?

jetty_1012_2-1690619377245.png

 

jetty_1012_0-1690619188428.jpegjetty_1012_1-1690619229156.jpeg

 

Thanks.

0 件の賞賛
返信

1,518件の閲覧回数
davidtosenovjan
NXP TechSupport
NXP TechSupport

Could you give references to S32DS and RTD version, which example is this related to?

0 件の賞賛
返信