Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 224730

Forum Post: RE: MSP430G2553 Stuck in Interrupts?

$
0
0
[quote user="oscar yu"]The issue I'm having right now is that once I press P2.3, it never goes back to main().[/quote]From looking at the code the Port_2 ISR doesn't clear BIT2 in P2IFG when the ISR detects that the calibration button is pressed. This means that once P2IFG BIT2 gets set by a transition on P2.3 then the CPU will not allow main to run, as there will always be a pending Port 2 ISR to service (other ISRs with a priority higher than Port 2 will also be able to be serviced).

Viewing all articles
Browse latest Browse all 224730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>