Interrupt of same port group pins for PSoC4000S

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
YoIs_1298666
Level 5
Level 5
250 sign-ins 100 replies posted 100 sign-ins

Hello,

I am looking at "7.8 Pin Interrupt" in AN86439 for GPIO interrupt.

I have two questions.

1. For example, when assigning two interrupt pins, it is necessary to assign them to consecutive pins. Is it possible to arrange them at different positions like P0.2 and P0.7?

2. If the other interrupt is entered while entering the interrupt handler, we need to check the interrupt pending of Pin_Button_INTSTAT before executing Pin_Button_ClearInterrupt () and exiting the handler. And if the other interrupt  is pending, It is also necessary to execute that interrupt processing. Is this correct?

Best regards,

Yocchi

 

 

 

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: If you want to use the Port0, Pin0.2 and Pin0.7 interrupt, you can use Global Signal (AllPortInt), just liker the below screenshot

LinglingG_46_0-1616726841015.png

2:If the code is running in the interrupt handler, at the same time, there is another interrupt, the core will make a judge depending on the interrupt priority.  The system will handle the higher priority event. 

3: The cortex M0 Support interrupt preemption.

 

 

View solution in original post

0 Likes
2 Replies
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

1: If you want to use the Port0, Pin0.2 and Pin0.7 interrupt, you can use Global Signal (AllPortInt), just liker the below screenshot

LinglingG_46_0-1616726841015.png

2:If the code is running in the interrupt handler, at the same time, there is another interrupt, the core will make a judge depending on the interrupt priority.  The system will handle the higher priority event. 

3: The cortex M0 Support interrupt preemption.

 

 

0 Likes

Hello,

Thank you very much for your help.

 

Can I check the interrupt pending bit of each GPIO_PRT0,1,2,4_INTR?

Best regards,

Yocchi 

0 Likes