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 5th July 2006, 09:33 PM   (permalink)
Default A/D Parallel output to 7 Segment

I will be using an ADC0801 A/D converter for a small project, the output is Parallel (Db0 to Db7). Is this the same as BCD? What I plan to do is to interface it to a BCD to 7 segment IC, but will it work?

I figured it would since BCD, and parallel output are the same, they are of course binary.
Overclocked is offline  
Old 5th July 2006, 10:18 PM   (permalink)
Default

Binary Coded Decimal is from 0 to 9. 8 bit binary is 0 to 255. It will work all right until you get over 9, then you will get fictitious numbers.

Last edited by ClydeCrashKop; 6th July 2006 at 01:23 PM.
ClydeCrashKop is offline  
Old 5th July 2006, 10:23 PM   (permalink)
Default

You need to reset it after 1001 with a gate .
oldtimer is offline  
Old 5th July 2006, 10:52 PM   (permalink)
Default

BCD and binary are most assuredly not the same. Unless the A/D converter has BCD outputs your proposed design is doomed.
Papabravo is offline  
Old 5th July 2006, 11:19 PM   (permalink)
Default

You could always make a BCD Encoder for the output of the ADC. As a side-issue, bear in mind that the ADC0801 is designed mainly for use with a microprocessor. That doesn't mean you can't use it as a standalone device - you can and it'll work fine, but you'll want to look up the timing diagrams on the datasheet because you've got to connect it up in a certain way to get it to work on it's own. I managed to figure it out when I used one as a standalone so if you get any problems I'll have a quick look at the datasheet for you - I'm sure I can figure it out again!

Brian
ThermalRunaway is offline  
Old 5th July 2006, 11:24 PM   (permalink)
Default

Hang on, something's telling me it was an ADC0804 that I once used not an ADC0801. So I might be wrong about the whole micro interface thing.

Brian
ThermalRunaway is offline  
Old 6th July 2006, 01:35 AM   (permalink)
Default

Quote:
Originally Posted by ThermalRunaway
You could always make a BCD Encoder for the output of the ADC. As a side-issue, bear in mind that the ADC0801 is designed mainly for use with a microprocessor. That doesn't mean you can't use it as a standalone device - you can and it'll work fine, but you'll want to look up the timing diagrams on the datasheet because you've got to connect it up in a certain way to get it to work on it's own. I managed to figure it out when I used one as a standalone so if you get any problems I'll have a quick look at the datasheet for you - I'm sure I can figure it out again!

Brian
Luckly for me, I found a chip to do all that work . Can convert BCD to Binary and Binary to BCD. (DM74184/DM74185A BCD-to-Binary and Binary-to-BCD Converters) The only problem is Ive only found one place that still has them, mouser,newark, nor allied (or digikey) has them in stock.

Intrestingly, Ive found A/D that have BCD outputs or have 7segment display outputs integrated in the chip. I might go for those, if I can find one thats easy to use.

What Im trying to do is convert a voltage from a sensor to be read on a display (in my case-LM35, the data sheet shows how to do it, which is why I was going to use that chip)
Overclocked is offline  
Old 6th July 2006, 02:39 PM   (permalink)
Default

Sorry guys. I screwed up exponentially!
ClydeCrashKop is offline  
Old 6th July 2006, 09:37 PM   (permalink)
Default

[quote=What Im trying to do is convert a voltage from a sensor to be read on a display (in my case-LM35, the data sheet shows how to do it, which is why I was going to use that chip)[/QUOTE]

As it happens, when I used the ADC0804 I was using it to convert the output of an LM35 as well!!!

Brian
ThermalRunaway is offline  
Old 7th July 2006, 05:09 AM   (permalink)
Default

Ivefound a chip that will practically do it all! Its outputs are BCD and needs no control lines or clock ! All the chip needs is a couple caps and some resistors, along with the decoder chip for the 7segment.

I have another question, reguarding the LM35. I am trying to figure out what the voltage will be at a certain temperature. The data sheet says 10mV/C. Is this 10mV Per C or is it 10mV Divided by C to get V out? The A/D has a 200mV and 20V Capablity.

The A/D Converter is CA3162.
Overclocked is offline  
Old 7th July 2006, 02:26 PM   (permalink)
Default

Degrees K, °K
(DM74184/DM74185A BCD-to-Binary and Binary-to-BCD Converters
Not made any more
FRIED is offline  
Old 7th July 2006, 06:23 PM   (permalink)
Default

It means that the voltage output from the LM35 will increase by 10mV for every one degree rise in temperature.

Brian
ThermalRunaway is offline  
Old 7th July 2006, 08:22 PM   (permalink)
Default

Quote:
Originally Posted by ThermalRunaway
It means that the voltage output from the LM35 will increase by 10mV for every one degree rise in temperature.

Brian
So then 200mV Scale wont be enough, since at room Temp (25C) I will be getting 0.25V. So then will a 2V Scale be enough?
Overclocked is offline  
Old 7th July 2006, 09:30 PM   (permalink)
Default

Well it depends on your application. A 2V scale would give you enough room to measure up to 200 degrees C, although I think that far exceeds the capability of the LM35. If I remember from when I used it, it tops out at 50 Degrees C?

Brian
ThermalRunaway is offline  
Old 7th July 2006, 09:37 PM   (permalink)
Default

Quote:
Originally Posted by ThermalRunaway
Well it depends on your application. A 2V scale would give you enough room to measure up to 200 degrees C, although I think that far exceeds the capability of the LM35. If I remember from when I used it, it tops out at 50 Degrees C?

Brian
150C. Full range is from -55 to 150C.

Ive figured out how to calibrate it already, since it wll be reading in C, all I have to do is get a certain voltage (say .5V for 50C) and adjust the display so it will display 50. Of course I might leave the decimal out, but I'll leave the negative sign in.

Last edited by Overclocked; 7th July 2006 at 09:42 PM.
Overclocked is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 11:31 AM.


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

eXTReMe Tracker