- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I config a input pin with interrupt as follow:
There is a compile error.
Why it happens? And how to remove the error except change the pin?
Solved! Go to Solution.
- Labels:
-
PSOC5 LP MCU
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Zheng_Li,
You are correct. This generates the same error you received because the IRQs are allocated on the same port.
However this configuration doesn't yield and error.
Once in the ISR, you need to determine which input caused it.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @Zheng_Li
Please provide more information regarding the device being used and the project.
Are any other components trying to provide interrupts to the same GPIO? Has the GPIO been configured to accept interrupts?
Providing your archived project would be easier to debug.
To do so, perform the following in PSoC Creator IDE: File->Create Workspace Bundle (minimal)
Regards
Nikhil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Zheng_Li,
You are correct. This generates the same error you received because the IRQs are allocated on the same port.
However this configuration doesn't yield and error.
Once in the ISR, you need to determine which input caused it.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Len,
Thanks for your replying.
I understand that the reason for the error is that there is only one input interrupt per port.
I distribute each input pin to each port in order not to determine the source of interrupt.
There is no error any more.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Zheng_Li,
I'm glad you solved your issue.
If you did need to have separate interrupts on multiple pins on the same port, there are ways to achieve this.
"Engineering is an Art. The Art of Compromise."