Implement a finite state machine by using a combination of Switches and LEDs on the MSP432 board. According to the follo
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Implement a finite state machine by using a combination of Switches and LEDs on the MSP432 board. According to the follo
(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).