Attachments are accessible only for community members.
Anonymous
Not applicable
Feb 10, 2017
03:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 10, 2017
03:35 PM
I've got a project where I have multiple pins that happen to be assigned to the same port.
I'd like to enable interrupts on all these pins. I understand that an interrupt on any pin within a port will be ORed together to a single PICU interrupt. Is it possible to enable interrupts for multiple pins that are assigned to the same port, but that aren't encapsulated in the same "cy_pins" component?
Labels
- Labels:
-
PSoC 5LP
3 Replies
Feb 10, 2017
09:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 10, 2017
09:30 PM
Probably not. But what prevents you to encapsulate all pins together? Then inside ISR just check which pin caused interrupt as: Mask = myIsr_ClearInterrupt();
Feb 16, 2017
11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 16, 2017
11:31 AM
That would work. It just looks confusing on the schematic to route pins from unrelated components to the same Pin block.
Feb 18, 2017
06:56 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Feb 18, 2017
06:56 AM
Alternatively, attach standard ISR components to the hardware connector of each individual pin (do not enable ISR on pin). In this case pins don't have to be on same port.