3. Indicate the pins connected to the individual segments of a
specified 7-segment indicator and the status of these pins (0 or 1)
to display specified 4-bit binary code in decimal format.
data for question 3:
indicator-HEX3; 4 bit code-0011
Your binary code:______
Segments |
Segment [6] |
Segment [5] |
Segment [4] |
Segment [3] |
Segment [2] |
Segment [1] |
Segment [0] |
Pins |
|||||||
Pin status |
4. Write VHDL code to display specified decimal digits on 7-segment
indicators.
Digit for question 4 is 24.
Below is the code to display specified decimal digits on 7-segment indicators.
display_7seg <= "0000001" WHEN "0000", --0
"1001111" WHEN "0001", --1
"0010010" WHEN "0010", --2
"0000110" WHEN "0011", --3
"1001100" WHEN "0100", --4
"0100100" WHEN "0101", --5
"0100000" WHEN "0110", --6
"0001111" WHEN "0111", --7
"1111111" WHEN OTHERS; --blank when not a digit
Get Answers For Free
Most questions answered within 1 hours.