Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 24th May 2004, 02:50 AM   (permalink)
Default binary to bcd decoder

i have a problem, im representing a analog signal that im converting it to digital, then when i try to display on a 7 segment display with a 7448 bcd driver, a 10, i want it to turn to 0 and that in another display it gives me a 1, how can i do it?
jacuinde is offline  
Old 24th May 2004, 09:34 AM   (permalink)
Default

first of all i dont understand the subject.

Quote:
binary to bcd decoder
BCD is binary coded decimal. so BCD is actually an encoded form of binary. u cant decode binary to bcd. although u can decode bcd to binary.

regarding to your question. im sorry its hard to understand what u r asking. are u asking how to display 10?? for that u should have two BCD lines driving two displays. one will have the code for zero (0000) and the other will have the code for one (0001).

i hope that helps
samcheetah is offline  
Old 24th May 2004, 02:23 PM   (permalink)
Default

Quote:
Originally Posted by samcheetah
first of all i dont understand the subject.

Quote:
binary to bcd decoder
BCD is binary coded decimal. so BCD is actually an encoded form of binary. u cant decode binary to bcd. although u can decode bcd to binary.
This is only true if your number is 9 or less. Otherwise, you must decode if you want bcd.

11011011 (binary) = 219 (decimal) = 0010 0001 1001 (bcd). That requires a decoder.
Roff is offline  
Old 24th May 2004, 03:33 PM   (permalink)
Default

Quote:
This is only true if your number is 9 or less. Otherwise, you must decode if you want bcd.

11011011 (binary) = 219 (decimal) = 0010 0001 1001 (bcd). That requires a decoder
isnt that called encoding??????????
samcheetah is offline  
Old 24th May 2004, 03:46 PM   (permalink)
Default

Isn't that called semantics? I thought you were implying that no logic transformation (encoding, decoding, transmogrification, whatever) was required to get from binary to BCD.
Roff is offline  
Old 24th May 2004, 05:55 PM   (permalink)
Default

Quote:
Isn't that called semantics? I thought you were implying that no logic transformation (encoding, decoding, transmogrification, whatever) was required to get from binary to BCD.
no i didnt say that. i said

Quote:
BCD is binary coded decimal. so BCD is actually an encoded form of binary. u cant decode binary to bcd. although u can decode bcd to binary.
when u transform one thing into something else, it is called encoding and when u transform it back to that thing it is called decoding. so when u transform binary into BCD, u r encoding binary into BCD. so BCD is an encoded form of binary. now when u transform BCD to binary u are decoding BCD to get the equivalent binary. the person who asked the question wrote "binary to BCD decoder" in the subject. so i told him that he was not right.

i think we should not argue on semantics and rather try to answer his question.

i told that im sorry i dont understand the question. but i did try to answer the question from what i understood.
samcheetah is offline  
Old 24th May 2004, 06:37 PM   (permalink)
Default

One way to do it would be to similtanously clock BCD and binary counters. When the binary numbers are equal, you can read the BCD counter.
__________________
see my website: www.geocities.com/russlk
Russlk is offline  
Old 24th May 2004, 09:02 PM   (permalink)
Default

Quote:
Originally Posted by samcheetah
Quote:
Isn't that called semantics? I thought you were implying that no logic transformation (encoding, decoding, transmogrification, whatever) was required to get from binary to BCD.
no i didnt say that. i said

Quote:
BCD is binary coded decimal. so BCD is actually an encoded form of binary. u cant decode binary to bcd. although u can decode bcd to binary.
when u transform one thing into something else, it is called encoding and when u transform it back to that thing it is called decoding. so when u transform binary into BCD, u r encoding binary into BCD. so BCD is an encoded form of binary. now when u transform BCD to binary u are decoding BCD to get the equivalent binary. the person who asked the question wrote "binary to BCD decoder" in the subject. so i told him that he was not right.

i think we should not argue on semantics and rather try to answer his question.

i told that im sorry i dont understand the question. but i did try to answer the question from what i understood.
OK, sorry that I misunderstood you. I generally agree with your definitions of encoding and decoding, although a Google search for "binary to BCD decoder" produced a page of hits - so I'm not the only idiot. :?
The binary to BCD converters I have seen require a microcontroller or microprocessor. There was a TTL part, 74185, but it seems to have been discontinued.
If you had a multi-digit BCD counter, and you converted the output to binary, would that be called an encoder or a decoder? I think perhaps "converter" is a better term, no matter which way you are going.
Roff is offline  
Old 25th May 2004, 04:37 PM   (permalink)
Default

Quote:
OK, sorry that I misunderstood you.
thankyou

Quote:
The binary to BCD converters I have seen require a microcontroller or microprocessor. There was a TTL part, 74185, but it seems to have been discontinued.
so it does exist :?

Quote:
If you had a multi-digit BCD counter, and you converted the output to binary, would that be called an encoder or a decoder? I think perhaps "converter" is a better term, no matter which way you are going.
this just keeps on getting harder and harder. ill agree with u
samcheetah is offline  
Old 25th May 2004, 07:19 PM   (permalink)
Default

I think one of the biggest problems in this thread is the use of 'BCD', I'm not exactly sure what is wanted - but I presume it's to display a binary number as decimal, so if it's an 8 bit binary number you want the display to go from 0-255.

If this is so, it's nothing to do with BCD at all, BCD isn't a method of displaying a binary number, it's a way of doing decimal maths in a binary system. With BCD your 8 bit number could only go from 0-99 in decimal, or 0000000-10011001 in binary, many processors have BCD maths capability.

Remember, BCD means 'Binary Coded Decimal'.

Perhaps jacuinde would like to give more details of exactly what he's trying to do?, in particular how many bits are being used, and how he wants them displaying.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 25th May 2004, 07:31 PM   (permalink)
Default

Nigel i think the biggest problem in this thread is that jacuinde is silent :lol:

i think he isnt using any processor. he might just have BCD from discrete logic ICs. i think that he wants to display two digit numbers. and he is asking that how would the second digit be displayed. it could have been that he encoded binary into BCD and now he wants to display it on a two digit display.

but all of that depends on jacuinde's reply
samcheetah is offline  
Old 29th May 2004, 04:18 AM   (permalink)
Default Re: binary to bcd decoder

Quote:
Originally Posted by jacuinde
i have a problem, im representing a analog signal that im converting it to digital, then when i try to display on a 7 segment display with a 7448 bcd driver, a 10, i want it to turn to 0 and that in another display it gives me a 1, how can i do it?
I'm not sure that I understand your question. If you simply want to convert 10 (meaning ten) into a 0 (ie. binary 0000), with a 1 for the tens display, then it can be done very simply with gating.

But why is your a/d converter giving you as 10 instead of a 0?

Len
ljcox is offline  
Old 16th April 2008, 02:43 AM   (permalink)
Default 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  
Old 3rd May 2008, 01:49 AM   (permalink)
Default

I think I know what jacuinde is asking because i have a similar question. Say that you have an 8 bit AD converter, and you want to display it's full range of base 10 values, that is 1 through 256. Is there a chip that will take this 8 bit number and decode it to a 3 digit display. I know that the 7448 (BCD-to-seven-segment decoder/driver) will take a 4 bit binary number and convert it to hexidecimal:0 through 9 and A through F (on a one digit display). Jacuinde wants to take a 4 bit number and display 0 through 15 (using a 2 digit display). Is there a decoder chip similar to the 7448 that will do this?
RAPIDRICK is offline  
Old 3rd May 2008, 01:52 AM   (permalink)
Default

One addendum. I just noted that jacuinde asked this question 4 years ago. Is anyone out there?
RAPIDRICK is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 02:59 AM.


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

eXTReMe Tracker