cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

JoYa_4324706
New Contributor II

I am trying to use the Global Signal Reference component to generate interrupt (on both edges from a GPIO input pin).

I've called these three functions based on what I did for other interrupt sources:

Cy_SysInt_Init(exti, button_isr);

NVIC_ClearPendingIRQ(exti_cfg.intrSrc);

NVIC_EnableIRQ(exti_cfg.intrSrc);

where button_isr is my handler function.

However, when I try to enter the debug mode and set a breakpoint at the beginning of my handler, it jumps right into it and somehow will keep getting to this handler indefinitely (even without changing the GPIO input). As a Global Signal component, is there anything else required for configuration that is different from other interrupt component in PSoC 6?

Thanks!

0 Likes
1 Solution
JoYa_4324706
New Contributor II

AlakanandaB_86​ Thank you for the answer. I have figured out that I forgot to clear the interrupts in my interrupt handler (Cy_GPIO_ClearInterrupt), which would have solved the issue.

View solution in original post

0 Likes
2 Replies
Alakananda_BG
Moderator
Moderator

Hi JoYa_4324706​,

I have attached the sample project which detects GPIO on both the edges.

Can you please look at this as a reference for your project and let me know if anything more is required.

Regards

Alakananda

Alakananda
JoYa_4324706
New Contributor II

AlakanandaB_86​ Thank you for the answer. I have figured out that I forgot to clear the interrupts in my interrupt handler (Cy_GPIO_ClearInterrupt), which would have solved the issue.

View solution in original post

0 Likes
Top labels