BUTTON1 and BUTTON2 for external interrupt for xmc4500 Relax Kit

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User17806
Level 1
Level 1
Hi,
I need two external interrupt in my project and want to use BUTTON1 (P1.14) and BUTTON2 (P1.15) on xmc4500 Relax Kit. I added PIN_INTERRUPT App to Dave CE 4 project. When I try to Manual Pin Allocator for it I see only BUTTON2 in the list. There is not BUTTON1. I checked user manual of xmc4500 and both pin (P1.14 and P1.15) has same Pad Type.
Thank you for your help.

Best regards,

Adem
3708.attach
0 Likes
3 Replies
jferreira
Employee
Employee
10 sign-ins 5 sign-ins First like received
Hi,

Only BUTTON2 pin (P1.15) is an input to one of the ERUs. For BUTTON1 (P1.14) you need to poll the state of the pin in SW.

Regards,
Jesus
0 Likes
User17806
Level 1
Level 1
Hi,
Thank you for this valuable information.
Regards.
Adem
0 Likes
NA97
Level 3
Level 3
50 sign-ins 10 replies posted 25 sign-ins

Hello, may I know how you implemented both buttons as interrupts? I am working on a similar project that requires both buttons to be interrupted to detect an event and perform an action.

0 Likes