Lab 5 – Interrupts
Lab Topics
Interrupts ................................................................................................................................... 5-36
Lab 5 – Interrupts .................................................................................................................... 5-37
Lab 5 Worksheet ................................................................................................................. 5-39
General Interrupt Questions ............................................................................................ 5-39
Interrupt Flow .................................................................................................................. 5-39
Interrupt Priorities & Vectors ........................................................................................... 5-40
ISR’s for Group Interrupts ............................................................................................... 5-41
Lab 5a – Push Your Button ................................................................................................. 5-42
File Management ............................................................................................................ 5-42
Configure/Enable GPIO Interrupt … Then Verify it Works .............................................. 5-45
Add a Simple Interrupt Service Routine (ISR) ................................................................ 5-48
Sidebar – Vector Errors ............................................................................................... 5-48
Upgrade Your Interrupt Service Routine (ISR) ............................................................... 5-50
(Optional) Lab 5b – Can You Make a Watchdog Blink? ..................................................... 5-51
Import and Explore the WDT_A Interval Timer Example ................................................ 5-51
Run the code ................................................................................................................... 5-53
Change the LED blink rate .............................................................................................. 5-53
Appendix ................................................................................................................................. 5-54
5 - 38 MSP430 Workshop - Interrupts