Homework 8
|
Modified: |
The purpose of the assignment is to develop some skills programming interrupts and polled input. The assignment examines hardware interrupts generated by a timer and polled input from a push button.
The assignment is based on the polled push button of the MSP430 Getting Started notes on Emulation using the Code Composer.
Turn on the red LED when the push button is pressed.
The assignment is based on the MSP430 Timer notes.
Toggle the green LED at regular intervals of approximately 1/2 second.
Combine the polled push button and timer programs to:
Two Launchpads are in LF111A in counter drawers labeled C335
and several of the computers there have CCS installed.
If you need access to LF111A outside of normal hours, contact the instructor for a building pass.
Hints
- Use either Assembler or C.
- In the timer program, the CPU was turned off and interrupts enabled, preventing any code execution until an interrupt occurs.
While polling the push button, the CPU cannot be turned off, enable interrupts only when polling.