Challenge 1.1: Use Pushbutton to Control Seven Segment Display
by Commanderfranz in Circuits > Electronics
720 Views, 4 Favorites, 0 Comments
Challenge 1.1: Use Pushbutton to Control Seven Segment Display
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.
What You Need:
- Have the Xilinx® ISE WebPACK™ installed.
- Have your FPGA board set up.
- Have completed Project 1.1 and Project 1.2 or understand how to use a switch to control an LED.
- Know how to use an assignment statement in Verilog to make connections.
- Know how to use switches to provide inputs to digital systems.
- Know how LEDs show the outputs of a digital system.
- Know how to use UCF to map I/Os of a system to physical devices on-board.
Seven Segment Display
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 above. 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.
Schematic
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 above shows the schematic for a seven-segment display.
System Diagram
Use the buttons to control the anode wires to turn the seven-segment display on and off. Figure 3 above shows the system diagram.