CE 433 Spring 2022
UART Tutorial
Taylor Nakai
tsnakai@fortlewis.edu

Introduction:
In this homework, we were given the task of using the debounce module to create a counter so that when the user presses the button it will increment the number displayed on the seven segment display by 1 from 1 to 9 then resetting back to 0, using the UART transmitter to show the letters/symbols in the serial monitor, using the UART receiver to read in the value from the terminal, and implementing the seven segment display to show the number being read in.

Task 1:
In task 1, we were given the task of using the debounce module to create a counter so that when the user presses the button it will increment the number displayed on the seven segment display by 1 from 1 to 9 then resetting back to 0. Figure 1 shows the code used to implement this. Figure 2 shows the demonstration showing the counter in action.


Figure 1. Code used to implement the counter on the Basys 3 board.


Figure 2. Demonstration of the counter being implemented on the Basys 3 board.

Task 2:
In task 2, we were given the task of using the UART transmitter to show the letters/symbols in the serial monitor. Figure 3 shows the code used to implement the UART transmission to show the letters/symbols in the serial monitor. Figure 4 shows the demonstration showing the UART transmission to show the letters/symbols in the serial monitor.


Figure 3. Code used to implement UART transmission to display letters/symbols in serial monitor.


Figure 4. Demonstration of the UART transmission to display letters/symbols in serial monitor.

Task 3:
In task 3, we were given the task of using the UART receiver to read in the value from the terminal. Figure 5 shows the code used to implement  UART receiver to read in the value from the terminal. Figure 6 shows the demonstration showing the UART receiver to read in the value from the terminal.


Figure 5. Code used to implement UART receiver to read in the value from the terminal.


Figure 6. Demonstration of the UART receiver to read in the value from the terminal.

Task 4:
In task 4, we were given the task of building on top of task 3 so that it implements the seven segment display to show the number being read in. Figure 7 shows the code used to implement  UART receiver to read in the value from the terminal and shows the number being read in on the seven segment display. Figure 8 shows the demonstration showing the UART receiver to read in the value from the terminal and shows the number being read in on the seven segment display.


Figure 7. Code used to implement seven segment display to show number being read in.


Figure 8. Demonstration of the implementation of the seven segment display to display the number read in.

Discussion:
By completing this homwork, it allowed me to become more comfortable using the seven segment display, UART TX and RX operation protocals associated with the Basys3. I really enjoyed reading in the numbers from the terminal to display them on the SSD. I really liked this tutorial as it was something that I never have explored. Overall, I think this homework was a great introduction into using the UART protocal that the Basys3 has to offer. I look forward to the next!
....................................................