- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I am using PSoC 4 CYBLE-214009. I am looking for a way to have UART "Wake up from deep sleep" enabled at the same time get interrupts generated from three pins on the same port.
Normally this is not supported, if I try to do it PSoC creator throws an error. However my idea is to modify the generated source or the UART IRQ to add the three pins to the mask. Such that if any of the pins or the UART go low then the UART ISR will get called and in there I can figure out the true source of the interrupt.
Does anyone know if this is possible? If so any guidance on the implementation is much appreciated.
Regards
MB
Solved! Go to Solution.
- Labels:
-
PSoC 4 Architecture
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is possible. Just config the three pins on the same port as general digital input pin with correct drive mode(don't enable interrupt in component), you can assign all these pins to the same PORT. Then enable the interrupt function of the three pins in firmware use API Pin_x_SetInterruptMode() is fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is possible. Just config the three pins on the same port as general digital input pin with correct drive mode(don't enable interrupt in component), you can assign all these pins to the same PORT. Then enable the interrupt function of the three pins in firmware use API Pin_x_SetInterruptMode() is fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thanks! Will give that method a try.