Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > (8-bit binary to two digit bcd) or (8-bit binary to two digit seven segment)

Reply
Thread Tools

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

 
 
Fangs
Guest
Posts: n/a
 
      04-08-2004
how do i write a code for (8-bit binary to two digit bcd) or (8-bit binary
to two digit seven segment)??

thanks.


 
Reply With Quote
 
 
 
 
Hendra Gunawan
Guest
Posts: n/a
 
      04-09-2004
"Fangs" <> wrote in message
news: lkaboutprogramming.com...
> 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


 
Reply With Quote
 
 
 
 
khalidbadal khalidbadal is offline
Junior Member
Join Date: Feb 2008
Posts: 1
 
      02-17-2008
send to my mail about conversion of 8-bit binary to seven segment
 
Reply With Quote
 
darshana darshana is offline
Junior Member
Join Date: Oct 2008
Posts: 1
 
      10-26-2008
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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Addition of two 100 digit numbers puneet vyas C++ 1 10-23-2008 10:55 AM
binary to bcd conversion (12 bit to 4 digit) raja_bade VHDL 2 07-31-2008 09:04 AM
convert single digit to two digits ofuuzo1@yahoo.no XML 2 04-12-2008 01:02 PM
8 bit binary to 2 digit BCD Yama VHDL 3 06-09-2006 07:48 PM
returning date with two digit year middletree ASP General 22 07-11-2005 04:36 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57