cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
461 Views
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
Highlighted
Xilinx Employee
Xilinx Employee
385 Views
Registered: ‎07-12-2018

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.
-------------------------------------------------------------------------------------------------------------------------------