Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

10 bit converter

Status
Not open for further replies.

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 :confused:
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;
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top