Hello everyone!
I am using the input (RST/NMI/SBWTDIO) of MSP430G2230 for controlling an LED. I set up the microcontroller to suffer interruption in NMI falling edge and light the LED. But I would like to know when the user releases the button, in order to clear LED.
In short, The LED should be lit when the button (RST / NMI / SBWTDIO) is pressed and enquando the button is pressed the the LED stays on. The LED will only go out when the button is released
Best regard
Leonardo!