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
 
LinkBack Thread Tools Display Modes
Old 16th September 2007, 01:01 PM   (permalink)
Default Convert binary to BCD code

I'd like to know how to convert one of my 4bit codes to a BCD code.
genetica is offline  
Old 16th September 2007, 01:22 PM   (permalink)
Default

Quote:
Originally Posted by genetica
I'd like to know how to convert one of my 4bit codes to a BCD code.
hi,
Is that a 4 bit binary code to bcd?, or to hex?


Have a look at this thread:

http://www.electro-tech-online.com/e...gment-led.html
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 16th September 2007, 02:16 PM   (permalink)
Default

4bit binary to BCD.
genetica is offline  
Old 16th September 2007, 02:22 PM   (permalink)
Default

Quote:
Originally Posted by genetica
4bit binary to BCD.
hi,
I must be missing something.

Isnt 0 thru 9 binary, BCD anyway??

Can you post a sample bin pattern?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 16th September 2007, 02:49 PM   (permalink)
Default

Well i got a random sequence for certain numbers

0 1110
1 1101
2 1011
3 0111
4 0001
5 0010
6 0100
7 1000
9 0000
8 all the rest.

And i like to convert them to BCD 8421 code.
I made a karnaugh diagram a created a circuit for the four inputs and then fout outputs a circuit for each bit. But the circuit is like huge.
genetica is offline  
Old 16th September 2007, 02:58 PM   (permalink)
Default

Quote:
Originally Posted by genetica
Well i got a random sequence for certain numbers

0 1110
1 1101
2 1011
3 0111
4 0001
5 0010
6 0100
7 1000
9 0000
8 all the rest.

And i like to convert them to BCD 8421 code.
I made a karnaugh diagram a created a circuit for the four inputs and then fout outputs a circuit for each bit. But the circuit is like huge.
hi,

Have you considered using an EPROM ic, load the pattern you want out as the data and the 'odd bit' pattern as the address?

EDIT:
IF this is related to the 7seg Driver thread, the EPROM output data could be the 7seg driver data!
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 16th September 2007 at 03:16 PM.
ericgibbs is online now  
Old 16th September 2007, 03:23 PM   (permalink)
Default

hi,
This drawing shows the method.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 12:21 PM.
ericgibbs is online now  
Old 16th September 2007, 03:37 PM   (permalink)
Default

Thanks ill do the Eprom.
genetica is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Convert serial LCD code into parallel LCD.. Help please.. AntRoFiZ Micro Controllers 10 22nd May 2007 02:07 PM
Trying to convert binary to ascii ChriX Micro Controllers 9 7th May 2005 01:30 PM
Tough assembly program for the PIC16F84 asmpic Micro Controllers 34 3rd December 2004 07:50 PM
converting binary number to ASCII code david_mora Micro Controllers 7 24th May 2004 10:08 PM
An error in pic16f84a, why? Zener_Diode Micro Controllers 6 11th April 2004 03:55 AM



All times are GMT. The time now is 08:16 AM.


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

eXTReMe Tracker