- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all:
As the follow picture:
How can I distinguish which pin generate the interrupt if both of the tow pins share the same interrupt source?
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can go through this example CE: http://www.cypress.com/documentation/code-examples/ce210558-psoc-4-gpio-interrupt.
In your case "FAULT_ClearInterrupt()" should clear the interrupt flag and return the right-shifted current value of the interrupt status register. The bit location that is "1" int the returned value indicated the pin which caused the interrupt. Please go through the example code for more details.
Thanks,
Yeshwanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
You can go through this example CE: http://www.cypress.com/documentation/code-examples/ce210558-psoc-4-gpio-interrupt.
In your case "FAULT_ClearInterrupt()" should clear the interrupt flag and return the right-shifted current value of the interrupt status register. The bit location that is "1" int the returned value indicated the pin which caused the interrupt. Please go through the example code for more details.
Thanks,
Yeshwanth