11-01-2010 07:49 PM
I am working on controlling some parameters of my control system using the buttons on my LM3S8962 Board. Does anyone know how to adjust the mechanical action for the buttons to "Latch when Pressed" I have looked around but have yet to find something that will work.
Thanks.
11-02-2010 11:14 AM
Tilgath,
From your post, I understand you to be referring to the mechanical action of the physical push buttons soldered onto the LM3S8962 evaluation board. If this is the case, you only have the option of using what physical hardware you have on the board. If you want a push button to act like a latching button, you would have to write code that performs this operation. You might code the following:
1) detect when the physical button is pushed
2) set a variable (or shift register) with the new button value
3) read from this variable in your code (instead of from the physical button)
4) when you read from the variable, clear the value
By introducing a variable in software, you can simulate a latching mechanical action for your hardware switch.
Kevin S.
Applications Engineer
National Instruments