![]() | ![]() | ![]() |
| |||||||
| 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? |
![]() |
| | Tools |
| | #1 |
|
I'd like to know how to convert one of my 4bit codes to a BCD code.
| |
| |
| | #2 | |
| Quote:
Is that a 4 bit binary code to bcd?, or to hex? Have a look at this thread: Binary input Hex dispaly (7 segment LED)?
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | #3 |
|
4bit binary to BCD.
| |
| |
| | #4 | |
| 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 " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ | ||
| |
| | #5 |
|
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. | |
| |
| | #6 | |
| 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 " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 16th September 2007 at 03:16 PM. | ||
| |
| | #7 |
|
hi, This drawing shows the method.
__________________ Eric " Good enough is Perfect " I will NOT answer PM's requesting technical help, please use the Forum PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/ Last edited by ericgibbs; 7th July 2008 at 12:21 PM. | |
| |
| | #8 |
|
Thanks ill do the Eprom.
| |
| |
|
| Tags |
| bcd, binary, code, convert |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| 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 |