In this challenge you will be asked to use push buttons to control the seven-segment display on your FPGA board. Each digit of the seven-segment display is composed of 7 LEDs arranged in a “figure 8” pattern with another LED for the decimal point. When the buttons are not pressed, all of the LEDs should be on. When a button is pressed, a digit should turn off.
Qty | Description |
---|---|
1 | Digilent® Nexys™4, Nexys™3, Nexys™2, or Basys™2 FPGA Board |
1 | Xilinx ISE Design Suite: WebPACK (14.6 Recommended) |
1 | Digilent Adept |
Seven-segment displays (7sd) are some of the most common electronic display devices in use. They can be used to display any decimal digit by illuminating particular segments and leaving other segments dark. 7sd devices are constructed from seven LEDs that have been arranged in a “figure 8” pattern, as shown in Fig. 1 below. These LEDs function identically to individual LEDs by emitting light when a small current passes through them.
The Digilent board uses a common anode display, which means all of the anode connections for a given digit are tied together in a common circuit node. To illuminate a given segment in a given digit, a '1' must be applied to the digit's anode and a '0' applied to the segment's cathodes.
When working with Digilent boards, the anodes are controlled by transistors while the cathodes are connected to the FPGA directly. Applying a '1' to the anode pin allows electricity to flow through the transistor to the anodes of the LEDs. When a cathode pin is driven to '0', the circuit is complete and causes the LED to illuminate. Figure 2 below shows the schematic for a seven-segment display.
Use the buttons to control the anode wires to turn the seven-segment display on and off. Figure 3 below shows the system diagram.