Other Parts Discussed in Thread: MSP430F5529
Hello again,
just another seriously strange problem occured in my device, although only twice until now, it is reproduceable.
I am using CCS 5.1 with the MSP430F5529
I am using the ports 1 as my buttons, so they are all defined as inputs, I can debug my code and also very clearly see that the portpins will switch to 1 when i push a button, eg when a voltage is applied to the pins. So far so good.
Now in my used code I KNOW there is a high signal ( so button is pushed) but a while loop, looking at exactly those pins is not executed, so for example a long pressed button will not stop sending ones but instead send the 1 over and over again.
By send I mean it applies voltage to the pin, and my code is reacting to it, I also know it is not the best solution, I already got some timer debounce routines, but sometimes it seemed still handy for me to stop the code by polling a certain button.
I am working in a menu-style system and it was just easier to program some parts this way.
But anyway my loop then looks like this:
while ( P1IN& BIT2);
so it will get stuck in there until I release my button. I definetly also know i do not have debounce issues, since my Code was perfectly working, I rather think some strange things do happen beside my Code, but I cannot explain yet what.
So perhaps anyone has similar issues and can support me.
Thanks a lot.
seb