- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
In my application project,a switch is connected at fx3 gpio 25 and led is connected at gpio 26.if i press switch one time,led is blinking two times.
i have defined interrupt callback for gpio 25(CY_FX_GPIOAPP_GPIO_HIGH_EVENT) and blinking led when the isr will call based on gpioeventset and gpioeventset.
but i dont know why isr is calling two times?or any coding issue is there ,let me know.
i have attached the source code.
thank you.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As mentioned in the last post you can try EDGE triggering and also you can handle switch debounce in firmware (that is, if the isr comes immediately one after another in a very short time, then you can consider it as single trigger)
Regards,
Hemanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Instead of interrupt at high level use CY_U3P_GPIO_INTR_POS_EDGE and check the issue is repeat or not
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
As mentioned in the last post you can try EDGE triggering and also you can handle switch debounce in firmware (that is, if the isr comes immediately one after another in a very short time, then you can consider it as single trigger)
Regards,
Hemanth