Interrupt vector source

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt vector source

670 Views
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 Kudos
5 Replies

661 Views
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 Kudos

636 Views
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 Kudos

628 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 Kudos

612 Views
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 Kudos

487 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport

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

0 Kudos