Not applicable
Jun 25, 2014
04:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 25, 2014
04:49 AM
Hello,
I started to work with the XMC1100 on a XMC2GO. Now I would like to implement a Pin Changing Interrupt in my Software but I do not understand how to do.
I noticed that I have to choose a Pin with ERU0 so I will connect my switch to P2.9 but how do I have to configure the ERU and the NVIC in my program.
There are several refers to DAVE TIP of the day ..., but I don't work with DAVE but with Keil uVision. So DAVE Apps won't help.
Maybe there is a small example code to init a pin as input with interrupt in plain C.
Kind regards
Dominik
I started to work with the XMC1100 on a XMC2GO. Now I would like to implement a Pin Changing Interrupt in my Software but I do not understand how to do.
I noticed that I have to choose a Pin with ERU0 so I will connect my switch to P2.9 but how do I have to configure the ERU and the NVIC in my program.
There are several refers to DAVE TIP of the day ..., but I don't work with DAVE but with Keil uVision. So DAVE Apps won't help.
Maybe there is a small example code to init a pin as input with interrupt in plain C.
Kind regards
Dominik
- Tags:
- IFX
4 Replies
Jun 26, 2014
07:26 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 26, 2014
07:26 PM
Hi Dominik,
We have a simple non-DAVE app example code with the boot kits, though it is still based on the DAVE platform.
Hopefully this still helps.
http://www.infineon.com/cms/en/product/evaluation-boards/KIT_XMC12_BOOT_001/productType.html?product...
Regards,
Chismo
We have a simple non-DAVE app example code with the boot kits, though it is still based on the DAVE platform.
Hopefully this still helps.
http://www.infineon.com/cms/en/product/evaluation-boards/KIT_XMC12_BOOT_001/productType.html?product...
Regards,
Chismo
Not applicable
Jun 27, 2014
04:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 27, 2014
04:00 AM
Hello Chismo,
thank you for your answer. This helps me pretty much. Now I'm able to use a portpin as extern interrupt. But I dont understand how to set another Portpin. Maybe you can help a litte once again.
With
I take P2.10 for trigger source. No Problem.
but when I want to add another trigger on P2.11 with
it overrides the trigger from 2.10.
Where do I have to declare 2.10 AND 2.11 as trigger?
Kind regards
Dominik
thank you for your answer. This helps me pretty much. Now I'm able to use a portpin as extern interrupt. But I dont understand how to set another Portpin. Maybe you can help a litte once again.
With
WR_REG(ERU0->EXISEL, ERU_EXISEL_EXS2B_Msk, ERU_EXISEL_EXS2B_Pos, 0);
I take P2.10 for trigger source. No Problem.
but when I want to add another trigger on P2.11 with
WR_REG(ERU0->EXISEL, ERU_EXISEL_EXS2B_Msk, ERU_EXISEL_EXS2B_Pos, 1);,
it overrides the trigger from 2.10.
Where do I have to declare 2.10 AND 2.11 as trigger?
Kind regards
Dominik
Not applicable
Jun 30, 2014
01:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 30, 2014
01:45 AM
Hi Dominik,
You should select two input from A and B.
Then AND these two signal in EXICONy.SS register.
You should select two input from A and B.
Then AND these two signal in EXICONy.SS register.
Jun 30, 2014
06:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 30, 2014
06:45 AM
Dear Vision,
Use "Advanced Search" in this Forum and search for "DAVE TIP of the day: How can external interrupts created?" - it will help 🙂
Here is the LINK:
http://www.infineonforums.com/threads/1052-DAVE-TIP-of-the-day-How-can-external-interrupts-created?h...
All the best,
Wilhelm
Use "Advanced Search" in this Forum and search for "DAVE TIP of the day: How can external interrupts created?" - it will help 🙂
Here is the LINK:
http://www.infineonforums.com/threads/1052-DAVE-TIP-of-the-day-How-can-external-interrupts-created?h...
All the best,
Wilhelm