This assignment required
working with a light sensor using the SPI communication protocol.
Task 1:
Task one was to implement a
program from the textbook that takes input from a light sensor using a
SPI leader reciever module and ouputs a value from 0 to 255 on the
seven segment display.
Figure 1: Light sensor code.
Along with the implementation of this code, the following changes were
made to the constraint file to allow input/output along the same Pmod
header.
Figure 2: Constraint file changes
Figure 3: Light sensor demonstration.
Discussion:
This assignment was a good
introduction to the SPI protocol. I had trouble with the constraint
file for a bit as I was attempting to use the JB declaration itself and
declaring different pins as inputs/outputs. This didn't work, and
required a better understanding of how the port declarations work on
the Basys 3 board.