Note: I have to display "8" for the first part.
Use the IAR IDE tool and the LaunchPad board with the MSP430G2553 device to do the following:
Produce an Assembly Language program to operate the LaunchPad board as described below:
Use the one-digit Display Board version 2.0 (checked out in class) with your LaunchPad for this project.
1. Briefly, to start things, display on the 7-segment display your one or two-digit number from the roll sheet. If your number is less than 10, display a single digit. Otherwise, display the two digits in sequence, with each digit displaying for about 1 second. When this sequence completes, pause with the last digit displayed for about 1 second, then clear the display completely for half a second and then enter the mode described in paragraph 2 below.
2. Display this sequence on the one-digit display: ECE-3362. Display these characters at a speed that is readable but not too fast or too slow (in any case, no more than 8 seconds to complete the display and no less than 3 seconds).
3. After the above sequence completes, clear the display for half a second and enter a mode where the 4 pushbuttons on the expansion board will be read repeatedly. The display will indicate which of the 16 possible combinations of the pushbuttons are currently pressed and display the appropriate hexadecimal number 0 through F. It will be possible to read and display any combination of the buttons, and the user can easily test all 16 possible combinations. Once in this mode, if the leftmost pushbutton on the Launchpad board is pressed at any time, the system will restart the whole process starting with step 1, then step 2, and finally return to the functionality described in this paragraph.
The buttons are weighted 1, 2, 4, 8 from the top, i.e. the topmost button has a weight of 1, and the treated as a TRUE state (ON), but is read by the MSP430 as a LOW logic state.
As an example: If no buttons are pressed: Display 0. Otherwise, here are two of the 16 cases:
ON (pressed) OFF ON (pressed) Display 7
or if buttons pressed OFF Display 8 ON (pressed) OFF OFF ON (pressed)