Page 1 of 1

Implement a finite state machine by using a combination of Switches and LEDs on the MSP432 board. According to the follo

Posted: Mon Mar 21, 2022 4:41 pm
by answerhappygod
Implement A Finite State Machine By Using A Combination Of Switches And Leds On The Msp432 Board According To The Follo 1
Implement A Finite State Machine By Using A Combination Of Switches And Leds On The Msp432 Board According To The Follo 1 (35.65 KiB) Viewed 53 times
Please write code to work in Code Composer Studio
(CCS)
Implement a finite state machine by using a combination of Switches and LEDs on the MSP432 board. According to the following description: 1. Inputs: switches (SW1 and SW2) 2. Outputs: RGB LED The logic: If SW1 pressed, turn on RGB LED to Blue; If SW2 pressed, turn on RGB LED to Red, and if both switches pressed, turn on RGB LED to White. Use the UART module to point the status of the switches on the console. Hint: you might need to add delay to the input switches to prevent switch bouncing. We call it switch/button debounce. ( tip : introduce delay when reading the port value).