Attachments are accessible only for community members.
Jun 24, 2013
07:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 24, 2013
07:37 PM
Do you know that, the Button 2 (P1.15) on the XMC4500 Relax kit is link to the ERU (Event Request Unit) input source selection "ERU1.1A0"?
Which means we can configure this button to generate an interrupt or triggering signal to other hardware peripheral (eg. CCU).
(See attached example)
Example Overview:
This simple ERU example is for XMC4500 relax kit. It demo a selected input A of ERU (ERU1.1A0) from Button 2 (P1.15) and generate an ERU interrupt to toggle LED2.
Test:
Press Button 2 repeatedly on Relax kit which will create pulses to the ERU input A. Next you shall see the LED2 toggle.
G@@d Luck..
Which means we can configure this button to generate an interrupt or triggering signal to other hardware peripheral (eg. CCU).
(See attached example)
Example Overview:
This simple ERU example is for XMC4500 relax kit. It demo a selected input A of ERU (ERU1.1A0) from Button 2 (P1.15) and generate an ERU interrupt to toggle LED2.
Test:
Press Button 2 repeatedly on Relax kit which will create pulses to the ERU input A. Next you shall see the LED2 toggle.
G@@d Luck..
12 Replies
Jun 24, 2013
11:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jun 24, 2013
11:14 PM
Thanks 🙂
Not applicable
Jul 13, 2013
12:14 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 13, 2013
12:14 PM
Hello there!
I wasn't sure If I should create a new thread for this question, but I wanted ask if It is possible to use ERU on pins which are not connected to any input source selection (like the one mentioned in this example: "ERU1.1A0"). I'm currently working on a project where the HW was given to me as is and my task is to write the firmware for it. I need to emit three different interrupts using P5.0, P5.2 and P3.0. Each one is connected to a button and emits its own interrupt. When these buttons are pressed ERU should inform NVIC that an External Interrupt should be happening. I'm using the XMC4500 Relax Kit (not the Lite version).
I thought about activating the peripheral, which are connected to these pins, but I guess that would be plain madness, since I don't need them to be on consuming power. Any other ideas?
I wasn't sure If I should create a new thread for this question, but I wanted ask if It is possible to use ERU on pins which are not connected to any input source selection (like the one mentioned in this example: "ERU1.1A0"). I'm currently working on a project where the HW was given to me as is and my task is to write the firmware for it. I need to emit three different interrupts using P5.0, P5.2 and P3.0. Each one is connected to a button and emits its own interrupt. When these buttons are pressed ERU should inform NVIC that an External Interrupt should be happening. I'm using the XMC4500 Relax Kit (not the Lite version).
I thought about activating the peripheral, which are connected to these pins, but I guess that would be plain madness, since I don't need them to be on consuming power. Any other ideas?
Jul 14, 2013
08:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jul 14, 2013
08:43 PM
Hi gabriel306,
It's good to continue the thread here so that others are aware of it. Your suggested P5.0, P5.2 and P3.0 are not link to ERU ... 😞
To fullfil your application needs, below are my suggestion..
Method 1:
The more graceful method to save number of GPIO and interrupt resources is to use the potential divider method + ADC. All you need is one ADC interrupt which will tell you which switch is being pressed as different switch press will provide a different AD value. This also has the advantage of detecting 2 button pressed at the same time.
http://www.instructables.com/id/MicroSimon/step3/4-Switches-on-1-ADC-pin/
Method 2:
The simple and fastest way is to do polling at every 10msec on the x3 GPIO.
G@@d luck
It's good to continue the thread here so that others are aware of it. Your suggested P5.0, P5.2 and P3.0 are not link to ERU ... 😞
To fullfil your application needs, below are my suggestion..
Method 1:
The more graceful method to save number of GPIO and interrupt resources is to use the potential divider method + ADC. All you need is one ADC interrupt which will tell you which switch is being pressed as different switch press will provide a different AD value. This also has the advantage of detecting 2 button pressed at the same time.
http://www.instructables.com/id/MicroSimon/step3/4-Switches-on-1-ADC-pin/
Method 2:
The simple and fastest way is to do polling at every 10msec on the x3 GPIO.
G@@d luck
Not applicable
Aug 05, 2013
11:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 05, 2013
11:18 PM
HI,
As I want to add DACWG001 App to this current program, how do make the DACWG001 signal toggle on/off whenever button2 is pressed?
As I want to add DACWG001 App to this current program, how do make the DACWG001 signal toggle on/off whenever button2 is pressed?
Not applicable
Aug 06, 2013
12:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 06, 2013
12:59 AM
Hi Holy_dem,
You just need to add the DACWG001 start and stop function inside the ERU_ISR.
You just need to add the DACWG001 start and stop function inside the ERU_ISR.
if(WaveOnOff)
{
DACWG001_Start(&DACWG001_Handle0);
WaveOnOff = 0;
}
else
{
DACWG001_Stop(&DACWG001_Handle0);
WaveOnOff = 1;
}
Not applicable
Aug 11, 2013
08:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2013
08:43 PM
Jackson wrote:
Hi Holy_dem,
You just need to add the DACWG001 start and stop function inside the ERU_ISR.
if(WaveOnOff)
{
DACWG001_Start(&DACWG001_Handle0);
WaveOnOff = 0;
}
else
{
DACWG001_Stop(&DACWG001_Handle0);
WaveOnOff = 1;
}
then what about using ADC001?
use ADC001_GetResult to read & store in channel AA memory? then how to stop read & store?
Not applicable
Aug 11, 2013
11:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2013
11:08 PM
Hi Holy_dem,
Can you be more specific? I don't quite understand what you really want to do.
Can you be more specific? I don't quite understand what you really want to do.
Not applicable
Aug 11, 2013
11:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 11, 2013
11:11 PM
Hi Jackson,
what I mean is how to add ADC001 into the start and stop function inside the ERU_ISR?
Thanks
what I mean is how to add ADC001 into the start and stop function inside the ERU_ISR?
Thanks
Not applicable
Aug 12, 2013
12:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 12, 2013
12:05 AM
Hi Holy_dem,
Do you mean you want to ON and OFF the ADC001 conversion?
If yes, you can set the ADC001_EnableBackGroundEvent and ADC001_DisableBackGroundEvent into the ERU_ISR start and stop function.
Do you mean you want to ON and OFF the ADC001 conversion?
If yes, you can set the ADC001_EnableBackGroundEvent and ADC001_DisableBackGroundEvent into the ERU_ISR start and stop function.
Not applicable
Aug 12, 2013
12:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug 12, 2013
12:18 AM
thanks for the infomation
Not applicable
Nov 06, 2013
06:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 06, 2013
06:21 AM
I would like to see how the aps are configured in this example.
But when I open it, I cant see any aps in the SW connectivity view.
Any ideas? Would it be because it used older version of the aps?
Specifically I want to see the configuration of ERU002.
But when I open it, I cant see any aps in the SW connectivity view.
Any ideas? Would it be because it used older version of the aps?
Specifically I want to see the configuration of ERU002.
Nov 06, 2013
09:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 06, 2013
09:52 PM
Maybe you can try to close DAVE3 and reopen it again.