(8-bit binary to two digit bcd) or (8-bit binary to two digit seven segment)

Discussion in 'VHDL' started by Fangs, Apr 8, 2004.

  1. Fangs

    Fangs Guest

    how do i write a code for (8-bit binary to two digit bcd) or (8-bit binary
    to two digit seven segment)??

    Fangs, Apr 8, 2004
    1. Advertisements

  2. The structural way to do this is to convert the 8 bit binary to BCD fist,
    then convert BCD to 7 segment.
    The BCD to 7 segment is very easy to implement. It is just a ROM with BCD as
    the input and seven segment as the output. It's simple because you only have
    10 cases to consider, 0000 to 1001 in each BCD. The rest of the cases, 1010
    to 1111, you just put don't care or all zeros or all ones for the outputs.
    The binary to BCD is much more difficult. You can search the web for the
    algorithm. If you contact me privately, I can send you the handouts
    regarding with the algorithm.

    Hendra Gunawan, Apr 9, 2004
    1. Advertisements

  3. Fangs


    Feb 17, 2008
    Likes Received:
    send to my mail about conversion of 8-bit binary to seven segment
    khalidbadal, Feb 17, 2008
  4. Fangs


    Oct 26, 2008
    Likes Received:
    for bcd to 2digit ssd,we have to use operators like modulus,divison.
    As in c,we use mod n div to break two digit no into ones place n tens place.
    darshana, Oct 26, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.