This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I have created a program with Port 1 interrupt in MSP30FR5969(MSP-EXP430FR5969) launch pad. I am using HFXT 12Mhz external clock, the program flow is whenever an input pin is pressed(port1 pin 5), it generates an interrupt and toggles(on/off) an led(port1 pin0) and after every 10th switching of input pin led from (Port4 pin6) should toggle and the count is made to 0. But the problem arises in hardware whenever the input pin is pressed (port1 pin 5) irrespective of the count both the led's glows and and switches off and sometimes led(port1 pin0) dosen't toggle even after the interrupt (port1 pin 5) has been generated.
But when I use debugger and keep breakpoint inside the interrupt function and check, it works fine as I wanted it to.
To Keith's point, it sounds like debouncing is missing. So a button press is actually counting as many presses at once, when you have the breakpoint set it works because it is pausing the code so the interrupt isn't constantly executing.
Regards,
Luke
Hello,
Thank you for your insights. We are connecting dso to the respective switch line here we cannot see any debouncing effect on the switches.
I think you should account for bounce anyway. If the switch should change in the future, it might have bounce.
**Attention** This is a public forum