(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)??

    thanks.
     
    Fangs, Apr 8, 2004
    #1
    1. Advertising

  2. "Fangs" <> wrote in message
    news:...
    > how do i write a code for (8-bit binary to two digit bcd) or (8-bit binary
    > to two digit seven segment)??


    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
     
    Hendra Gunawan, Apr 9, 2004
    #2
    1. Advertising

  3. Fangs

    khalidbadal

    Joined:
    Feb 17, 2008
    Messages:
    1
    send to my mail about conversion of 8-bit binary to seven segment
     
    khalidbadal, Feb 17, 2008
    #3
  4. Fangs

    darshana

    Joined:
    Oct 26, 2008
    Messages:
    1
    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
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Yama
    Replies:
    3
    Views:
    1,342
    Dave Pollum
    Jun 9, 2006
  2. Elnikety
    Replies:
    2
    Views:
    1,417
    Elnikety
    May 7, 2007
  3. raja_bade
    Replies:
    2
    Views:
    10,737
    raja_bade
    Jul 31, 2008
  4. Felipe Ribeiro

    Simulating a seven-segment display

    Felipe Ribeiro, Jul 1, 2009, in forum: C Programming
    Replies:
    16
    Views:
    1,046
    Squeamizh
    Jul 22, 2009
  5. 0m
    Replies:
    2
    Views:
    977
    Richard Bos
    Jul 5, 2009
Loading...

Share This Page