- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.