Lab 5 – Interrupts
22. Comment out the PORT1_VECTOR from unused_interrupts.c.
23. Try building it again
It should work this time… our fingers are crossed for you.
24. Launch the debugger.
25. Remove all breakpoints.
View → Breakpoints then click the Remove All button
26. Set a new breakpoint inside your new ISR.
27. Run your code … nce the code is running, push the button to generate an interrupt.
The processor should stop at your ISR (location shown above). Breakpoints like this can
make it easier to see that we reached the interrupt. (A good debugging trick.)
28. Resuming once again, at this point inside the ISR should toggle-on the LED.
If it works, call out “Hooray!”
29. Push the button again.
Hmmm… did you get another interrupt? We didn’t appear to.
We didn’t see the light toggle-off – and we didn’t stop at the breakpoint inside the ISR.
Some of you may have already known this was going to happen. If you’re still unsure, go
back to Step 13 from our worksheet (page 5-41). We discussed it there.
MSP430 Workshop - Interrupts 5 - 49