- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, I have been trying to set up a pin to implement a interrupt service routine (ISR) but it seems to do nothing. I may have forgotten to configure something I am affraid.
I´ve looked at everything I found but is still not working at all.
I am using the cypress CY8C29466-24 PVTI (development kit). I also have the CY8C2421434.
Can someone please give me a hand on that? Couldnt sort it out myself.
- Labels:
-
PSoC 5LP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For PSoC1 there is a template-file named "boot.tpl". There you find the GPIO Interrupt entry. Write down a
"LJMP _MyHandler" // the underscore "_" is needed!
In main.c
#pragma interrupt_handler MyHandler
and later
void MyHandler(void)
{
// Handle the interrupt
}
That's it
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Some additional info here www.cypress.com/
and here www.cypress.com/
And: Welcome in the fascinating world of PSoCs!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Don't forget to declare values modified in ISR to be "volatile"
Regards, Dana.