![]() | ![]() | ![]() |
| | |||||||
| 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? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I'd like to know how to convert one of my 4bit codes to a BCD code. | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| 4bit binary to BCD. | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| Thanks ill do the Eprom. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |