5-bit binary to BCD code converter

Thread Starter

>Chris<

Joined Oct 16, 2008
17
Hello everyone,
I have to build a 5-bit binary to BCD converter for one of my classes. The question is as follows:
Design a binary to BCD code converter to convert a 5-bit binary number to its BCD code, where the most significant bit simply represents the dot (decimal) on the Seven Segment LED display. Display the BCD coded number on the 7 segment LED display and only display the BCD code for binary inputs (00000) to (10011), this means all other input combinations should not display anything on the LED display.
So as far as I understand it, it would be the easiest way to design the circuit to go from 0 to 9 and then the dot turns on and 0 to 9 repeats again. But i don't get how I can make the dot turn on at state 10. Can someone help me with that? And would that actually the most efficient way to build this circuit?
Oh and btw we can only use basic gates!

Thank you!
 

beenthere

Joined Apr 20, 2004
15,819
Do you understand the differences between binary values and binary coded decimal? The task is to convert from binary to BCD. A small example - 01011b = 11d, 10001b = 17d

Arranging to
design the circuit to go from 0 to 9 and then the dot turns
will not do a number base conversion.
 
Top