10 bit converter

sina-VIP

New Member
hi every one
i have this 10 bit binary number that i want to convert it into BCD
i have no idea how
some say i should use a (E)PROM or i should cascade several 74583s
but i have no idea how to program PROM or cascade 74583
and im also open to new ideas about converting
 
Last edited:
Homework assignment?
 
no it used to be last term at university
now im doing it for SELF-studying

Excellent!

After you studied it yourSELF... You can post here and tell us how it's done.
 
no it used to be last term at university
now im doing it for self-studying

So do you understand what BCD is? I always thought BCD to be goofy and useless, but I guess it still crops up from time to time.
 
I always thought BCD to be goofy and useless, but I guess it still crops up from time to time.
It makes it easy to display binary information in a digital decimal display. Otherwise displaying binary data in decimal format is rather messy.
 
Excellent!

After you studied it yourSELF... You can post here and tell us how it's done.
no there's been a misunderstanding
i have studied it a lot
i aint lazy im just rookie
this was a part of a greater project
an 8bit calculator performing the 4 main actions
i had alternative designs too but this was the simplest
the only problem left is the 10bit binary results
 
Last edited:
Code:
dig1 = dig10 = dig100 = dig1000 = 0;
while(num >= 1000)
{
	dig1000 ++;
	num -= 1000;
}
while(num >= 100)
{
	dig100 ++;
	num -= 100;
}
while(num >= 10)
{
	dig10 ++;
	num -= 10;
}
dig1 = num;
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…