- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have some hardware processes the raises some interrupts. The software part must wait for all interrupts completed. But I have no knowledge about the numer of events.
Is there a way to check for still pending interrupts. I only found functions to clear the queue.
Bye
Franz
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thru these register reads -
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have a look into the PSoC3 TRM to be found here
There are some explanations regarding the interrupt ctrlr
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You also should disable the affected interrupts (or maybe all interrupts) before you check for pending ones. Otherwise an interrupt can be triggered the exact moment you detected out that none are active - and then you are screwed 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can read the "set pending" register (API in the isr_x.h file) for isr_2 the code is:
if (*isr_2_INTC_SET_PD & (uint32)isr_2__INTC_MASK) ... You can use the same method to check all the interrupt registers