Other Parts Discussed in Thread: MSP430F5438A
Hi All
I would need test - press button and also release button connected to P2.0 of MSP430F5438A processor. Is there some strip of code somewhere. Can anybody help me? Thank you.
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.
Other Parts Discussed in Thread: MSP430F5438A
Hi All
I would need test - press button and also release button connected to P2.0 of MSP430F5438A processor. Is there some strip of code somewhere. Can anybody help me? Thank you.
Sure. The forum should hold several.Bohdan Jedlicka said:Is there some strip of code somewhere.
Since the ports more or less work the same on all MSPs (except the missing internal pullup feature on F1xx devices), this info can be used on 5438A as well.
Thanks.
I have read it I think. I think nobody solves release button after press button. I think (experience from another processor) it is necessary to disable interrupt change edge detection and next enable interrupt. I think to restore SFR register in interrupt routine will be problem.I did hope that I can follow code from skilled profesionals. I am not good in MSP430 so far.
Before re-enabling, clear any erroneous IFG bit that was set due to the edge detection change. But yes, that's it. Release detection is the same a spress detection, just with opposite logic levels. (and can bounce too)Bohdan Jedlicka said:I think it is necessary to disable interrupt change edge detection and next enable interrupt.
And I'm pretty sure this has been addressed in one of the posts. But I know myself that the board search isn't the easiest thing to successfully use.
Well, such things are definitely used here and there (including my own code) but then usually buried deep in other code, so it cannot be easily made available as standalone example. Also, most 'professionals' cannot post their own code as it belongs to their employer or contractor.Bohdan Jedlicka said:I did hope that I can follow code from skilled profesionals.
It's not difficult if one tries to understand rather than clicking a program together for quick success. (yes those people are frequent visitors here, unfortunately)Bohdan Jedlicka said:I am not good in MSP430 so far.
Hi Jens
Thank you for strip of gup instead of strip of code, let us assign you 100 point.
**Attention** This is a public forum