![]() |
![]() |
![]() |
|
|
|||||||
| 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? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
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 |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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? |
|
|
|
|
|
|
(permalink) |
|
What will it be used for?
|
|
|
|
|
|
|
(permalink) |
|
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.
|
|
|
|
|
|
|
(permalink) | |
|
Quote:
__________________
--- The days of the digital watch are numbered. --- |
||
|
|
|
|
|
(permalink) |
|
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).
|
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
Hi Cucumber,
If you like industrial archeology here's another one. No idea how it works though. on1aag. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
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. |
||
|
|
|
|
|
(permalink) | |
|
Quote:
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. |
||
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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. |
|
|
|
|
|
|
(permalink) |
|
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) |
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| 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 |