Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 16th April 2008, 01:51 AM   (permalink)
Default binary to bcd converter

binary to bcd converter

i have inputs in 4 bit binary ( from 0 to 15). i want to display my 4 bit binary inputs to 7 segment display which means i must have two 7 segment display. how can i convert my binary inputs to bcd in simplest way? can anyone give me explaination on how to make both of my 7 segment display the outputs of two digits ( from 00 to 15)?

-thank you
cucumber is offline  
Reply With Quote
Old 16th April 2008, 03:17 AM   (permalink)
Default

It depends on what you mean by "simple".
You could use a PIC to do this with very simple hardware and software.
You could use a 74185 if you can find one.
You could use a 74LS154 and a bunch of diodes.
You could use a bunch of logic gates instead of above.
You could use a EPROM chip.
__________________
--- The days of the digital watch are numbered. ---

Last edited by kchriste; 16th April 2008 at 03:29 AM.
kchriste is offline  
Reply With Quote
Old 16th April 2008, 03:31 AM   (permalink)
Default

is there any ic that can help me convert binary to decimal?
n could you help me with my second question which how can i display 4 bit binary inputs on two 7segment display output?
cucumber is offline  
Reply With Quote
Old 16th April 2008, 03:35 AM   (permalink)
Default

What will it be used for?
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Reply With Quote
Old 16th April 2008, 03:43 AM   (permalink)
Default

actually i cant figure out how to convert from binary to BCD, so i thought maybe i can convert my binary to decimal first n then from decimal to BCD. but then, i realized that BCD can only from 0 until 9 while i need my output to display 00 until 15.
cucumber is offline  
Reply With Quote
Old 16th April 2008, 03:45 AM   (permalink)
Default

Quote:
Originally Posted by cucumber
is there any ic that can help me convert binary to decimal?
Yes, I mentioned the 74185 above, but it'll be hard to find. Maybe there is an easier way to do this. Post your existing circuit here.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Reply With Quote
Old 16th April 2008, 03:53 AM   (permalink)
Default

the convertion of binary to BCD is just part of my digital electronic project actually. the project is 4 bit positive subtract calculator which the output must be display with 7 segment display. i built the circuit but i get stuck when the part i have to make connection between the the 4 bit binary output from full adder(7483) and BCD to 7 segment decoder(7447).
cucumber is offline  
Reply With Quote
Old 16th April 2008, 04:57 AM   (permalink)
Default

Here's a method to convert serial binary to BCD. It uses an adder and a shift-register per digit. Perhaps you can adapt it to your needs. It's from an old Fairchild TTL Applications Book.
Serial Binary to Parallel BCD.jpg

Last edited by crutschow; 16th April 2008 at 05:19 AM.
crutschow is offline  
Reply With Quote
Old 16th April 2008, 12:09 PM   (permalink)
Default

Hi Cucumber,

If you like industrial archeology here's another one.
No idea how it works though.

on1aag.
Attached Images
File Type: gif Binary to BCD.GIF (9.2 KB, 74 views)
on1aag is online now  
Reply With Quote
Old 16th April 2008, 03:07 PM   (permalink)
Default

take the advice and look at the 74185
elexp.com has the 74185 and I'm sure many other places do as well. Looking at the datasheet for it, it's very simple and can convert up to a 6-bit binary to BCD which you can feed into your 7447

Better still, perhaps look at the TDA4092 which is a binary to 7-segment decoder, skip the BCD step altogether, though this would only give you an output between 0 and 32

Last edited by Norlin; 16th April 2008 at 03:12 PM.
Norlin is offline  
Reply With Quote
Old 16th April 2008, 09:22 PM   (permalink)
Default

Quote:
Originally Posted by on1aag
If you like industrial archeology here's another one.
No idea how it works though.
I simulated the circuit and it seems to work. The "Co" line at top left is the left "Tens" digit. It's high for 10 through 15 input.

The "1", "2", "4", and "8" output at top is the right BCD digit for 0 through 9.

This scheme only works for 4 bits but I believe that's all you need.
crutschow is offline  
Reply With Quote
Old 17th April 2008, 12:11 AM   (permalink)
Default

Quote:
Originally Posted by on1aag
Hi Cucumber,
If you like industrial archeology here's another one.
No idea how it works though.
on1aag.
Interesting circuit.

It works by detecting any number greater than 9 ((8&4)|(8&2)) and using that as the 10s digit. It also feeds the 10s output into the 4 and 2 bits of the adder therefore adding 6 to any number greater than 9.

Mike.
Pommie is offline  
Reply With Quote
Old 17th April 2008, 12:26 PM   (permalink)
Default

about the circuit given by on1aag, i found difficulities when i want to try it. maybe i can get a little info on how i can use the circuit. from my observation, i only need to feed in 1 4bit binary number isnt it? sorry, but i'm not very clear with the circuit yet.

so far, i already manage to get my first 7 segment to display the left decimal output ( eg. '0' for '05' and '1' for '10') but i still cant figure out on how to make my second 7segment display the right decimal output.

I try to find as much altenative as i could. now, i'm still searching for the 74185 converter but at the same time, i tried some other ways. i tried to modify my friend's 4 bit adder design, but i couldnt find way either.
cucumber is offline  
Reply With Quote
Old 17th April 2008, 12:45 PM   (permalink)
Default

Hi Cucumber,

Connect the LSB to the "1" input at the bottom,
. . . and the MSB to the "8" input.
Connect the "1" output at the top to the A input
of the 7447, . . . and the "8" to the D input.

on1aag.
on1aag is online now  
Reply With Quote
Old 17th April 2008, 02:48 PM   (permalink)
Default

Connect the LSB to the "1" input at the bottom,
. . . and the MSB to the "8" input.
Connect the "1" output at the top to the A input
of the 7447, . . . and the "8" to the D input.

*if i have to substract two 4bit binary numbers such as :
*1000 - 0001 ( the ouput is 07)
*1110 - 0101 ( the ouput is 10)
cucumber is offline  
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Serial Binary to BCD Digital Display w/o uP crutschow Electronic Projects Design/Ideas/Reviews 2 14th March 2008 11:31 PM
Binary to BCD converter kyutekyute101 General Electronics Chat 2 26th April 2006 11:38 AM
Binary to BCD converter NEW_Designer Electronic Projects Design/Ideas/Reviews 1 26th March 2004 03:18 AM
binary to bcd converter iieeahmed Datasheet/Parts Requests 2 15th February 2004 02:10 AM
Binary to BCD converter tadao Electronic Projects Design/Ideas/Reviews 2 21st May 2003 01:57 PM



All times are GMT. The time now is 09:15 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.