We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

Showing results for 
Search instead for 
Did you mean: 
Visitor kaanibis
Registered: ‎09-26-2018

Interrupt Trigger Type - Double trigger

I'm studying on button interrupts. I want to trigger the function only rising edges. Although I have added the following line to my code, the button interrupt function triggers two times with one button press.

XScuGic_SetPriorityTriggerType(&intc_instance_ptr, INTC_INTERRUPT_ID_1, 0xA0, 0x3);

How can I solve this problem? I cannot realize the reason for this problem.

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
Registered: ‎07-12-2018

Re: Interrupt Trigger Type - Double trigger

Hi @kaanibis 

Switch de-bouncing logic is required in the hardware to avoid two or multiple interrupts for a single button press.

Even though you make the changes in the interrupt handler this may not work as there is no de-bouncing logic.

My recommendation is to go for the level triggering instead of edge triggering.

Best Regards
Abhinay PS
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.
Give kudos to a post which you think is helpful and reply oriented.