[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).
↧