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.
hi i'm new on using 74158a ic,and i also have the same dillema of converting an 8bit binary number to decimal i wonder if you could help me anyhow?? i would greatly appreciate your help thanx in advance
Converting binary to bcd is rather tricky without a microprocessor. Here's a binary-to-bcd circuit from an old Fairchild TTL application manual. You may have to find equivalents for some of the parts if they are no longer made.
Another way to do a Binary-to-BCD conversion is to use a binary up/down counter and a BCD counter. The binary number is parallel jammed into the up/down counter. Then the counter is clocked to count down to zero. The same clock is used to clock the BCD counter up from zero. When the binary counter reaches zero, the BCD counter will contain the binary number in BCD format.
Edit: Note that the BCD (decade) counter can be one that directly drives a 7-segment display, such as the CD4033 or the CD40110B, if desired.
TTL chips: 74184 BCD-to-binary converter; 74185 binary-to-BCD converter. Simple, easy, you don't need a µP -- trouble is, you probably aren't going to find them anymore since they've gone the way of the 74100.
Another way is to program an EPROM with a look-up table.