1 / 7

Lab 5 Multiplexer and 7-Segment Display

Lab 5 Multiplexer and 7-Segment Display. Module M7.3. EXPERIMENT 5: Multiplexer and 7-Segment Display. PRE-LAB. 1. Study text Sec. 6.5, Code Converters , pages 143-152.

Download Presentation

Lab 5 Multiplexer and 7-Segment Display

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 5Multiplexer and 7-Segment Display Module M7.3

  2. EXPERIMENT 5: Multiplexer and 7-Segment Display PRE-LAB 1. Study text Sec. 6.5, Code Converters, pages 143-152. 2. Write an ABEL program called MuxDisp that includes a 4-line 2x1 MUX with inputs X and Y and output Z (see Lab 4) plus a 7-segment decoder as described in the lecture module M7.2. The input X = [X3..X0] should be connected to switches S1 (the left-most 4 switches) and the input Y = [Y3..Y0] should be connected to switches S2 (the right-most 4 switches). The eight LEDs should record the settings of the corresponding eight switches. The output of the multiplexer, Z = [Z3..Z0], is the input to the 7-segment decoder. The select line of the multiplexer, S, should be connected to the pushbutton switch. Connect the pushbutton switch to the decimal point of the 7-segment display. Complete the following set of test vectors and add them to the end of your ABEL program.

  3. test_vectors ([X,Y,S] -> Z) [12,0,0] -> ; [8,4,1] -> ; [13,1,0] -> ; [9,5,1] -> ; [15,3,0] -> ; [11,7,1] -> ; [14,2,0] -> ; [10,6,1] -> ; Print out a copy of the file MuxDisp.abl.

  4. LAB 1. Create a directory called <your name> under C:\CSE171 on the computer you are using in the lab. Create a new project called Lab5 using the Xilinx Project Navigator program. (See the Lab 2 tutorial for details.) Add your program MuxDisp.abl to the project by using Project->Add Copy of Source… on the Project Navigator toolbar. Compile your program by double-clicking Generate Programming File.

  5. 2. Select MuxDisp-vectors in the Sources in Project window. Double-click Generate Blif Simulation Report under Simulation Reports in the Processes for Current Source window. Double-click View Blif Simulation Report under Generate Blif Simulation Report. If there are no errors, print out this Blif Simulation Report. 3. Select MuxDisp.abl in the Sources in Project window. Program the Xilinx XC9508PC84 CPLD on the PLDT-1 board by double-clicking Configure Device (iMPACT) and then right-clicking on the picture of the Xilinx chip.

  6. 4. Test your circuit by setting the toggle switches on the PLDT-1 digital logic trainer board to the following values. For each value, record the binary values displayed in LEDs 5 to 8 and the hex values displayed in the 7-segment display with the push-button switch both released and depressed. Report these results in your lab report. push button released push button depressed toggle switch 7-segment 7-segment valuesdisplaydisplay '1100 0000'   ____ ____ '1101 0001'   ____ ____ '1111 0011'   ____ ____ '1110 0010'   ____ ____ '1010 0110'   ____ ____ '1011 0111'   ____ ____ '1001 0101'   ____ ____ '1000 0100'   ____ ____

  7. 5.Demonstrate your completed multiplexer and 7-segment display circuit to your lab instructor and obtain your lab instructor's signature for your work on the .abl listing for the program MuxDisp.abl. 6. Include the following in the lab report: a.       A listing of your file, MuxDisp.abl. b.      A listing of the Blif Simulation Report. c.       A copy of the file, PLDT1PinOuts.doc. d.      A copy of the results from the table in Part 4 above. 7. Delete the directory C:\CSE171\<your name> that you created at the beginning of this lab.

More Related