serial communication, LCD, temperature sensor interfacing, accelerometer interfacing, and interrupts using the Ti MSP432 board and the booster pack MKII.
his lab introduces serial communication, LCD, temperature sensor interfacing, accelerometer interfacing, and
interrupts using the Ti MSP432 board and the booster pack MKII.
Requirements:
1. When the command FAC n R is typed on the serial communication console, the red LED (J4.39) should blink based on
the factorial of n. (Example values of n: if n = 1 then 1 blink, if n = 2 then 2 blinks, if n = 3 then 6 blinks, and so on)
2. When the command SRS n G is typed on the serial communication console, the green LED (J4.38) should blink based
on the series an = an-1 + 2an-2 where a1 = 1 and a2 = 1. (Example values of n: if n = 1 then 1 blink, if n = 2 then 1 blink, if
n = 3 then 3 blinks, and so on)
3. The blinking should not be accomplished using delay functions
4. When a command is sent through the serial communication console, the board should acknowledge by sending
“Executed” to the serial communication console after the command is executed
5. Any command that is not recognized by the board should be acknowledged by printing “Invalid Command” on the
serial communication console
6. Display the command and the acknowledgement (“Executed” or “Invalid Command”) on the LCD screen
Page 2 of 2
7. Display the object temperature on the serial console when the push button S1 (J4.33) is pressed
8. Display the accelerometer (x, y, and z axis) values when the push button S2 (J4.32) is pressed
9. Only one command or operation can be given or performed at a time and the end of a command on the serial console
is determined by pressing the enter key on the keyboard
10.Make sure every command is entered on a new line and every response message should be displayed on a new line
11.Make sure the push button inputs (S1 (J4.33) and S2 (J4.32)) are configured as interrupt-based inputs.
Procedure:
1. Setup and run the example codes after reading the MK II setup document posted on Canvas
2. Test examples AccelerometerSerial, LCD_screen_test, and TMP006 from File → Examples → 09.EducationalBP MKII.
3. Use the serial functions in this link to process the serial input commands
4. Make sure to setup the ADC resolution to 12 bits when using the accelerometer
5. Make sure all the push button inputs (S1 (J4.33) and S2 (J4.32)) are configured as interrupt-based inputs. Refer to the
link for more information.
6. Using the example codes, complete the lab to meet all the requirements
7. Record your observations in the report.