Nov 19, 2018
06:26 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 19, 2018
06:26 AM
I use
.edge_detection = XMC_ERU_ETL_EDGE_DETECTION_BOTH.
for exertnal IRQ
This trigger my IRQ function
void ERU0_0_IRQHandler(void) {
if "falling edge" {
}
else {
}
}
Now i have to find out the direction in the IRQ Function, is this possible ?
Thanks,
Embedded
.edge_detection = XMC_ERU_ETL_EDGE_DETECTION_BOTH.
for exertnal IRQ
This trigger my IRQ function
void ERU0_0_IRQHandler(void) {
if "falling edge" {
}
else {
}
}
Now i have to find out the direction
Thanks,
Embedded
- Tags:
- IFX
2 Replies
Nov 20, 2018
02:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
02:23 AM
Hi,
You will need to check the status of the pin XMC_GPIO_GetInput(). Of course this is assuming the pin remains stable after the edge until the ISR is processed.
Regards,
Jesus
You will need to check the status of the pin XMC_GPIO_GetInput(). Of course this is assuming the pin remains stable after the edge until the ISR is processed.
Regards,
Jesus
Nov 20, 2018
04:12 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nov 20, 2018
04:12 AM
Hi Jesus,
thank you for this tip, working fine
Regards,
Embedded
thank you for this tip, working fine
Regards,
Embedded