Switching an Analog Pin

Go To Last Post
17 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Dear guys,

I have a simple question.

Is multiplexer model  74HC153E  suitable for multiplexing an ADC pin?

Thank you, 

This topic has a solution.

You can DO EVERYTHING!

Just believe yourself !!!

Last Edited: Sat. Jul 25, 2015 - 11:25 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

No. Use a 74hc4051/2/3
I'm assuming you want to mux an analog signal.

Last Edited: Fri. Jul 24, 2015 - 08:40 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Could you explain that what is the function of the mode HC153???

 

You can DO EVERYTHING!

Just believe yourself !!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Have you looked at a Datasheet for an HC153???

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yes but I confused!!!

You can DO EVERYTHING!

Just believe yourself !!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A 153 is a multiplexer for digital signals.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ehsan2754 wrote:

yes but I confused!!!

 

Well, with this footer:

You can DO EVERYTHING!

 

 

Just believe yourself !!!

... you should be able to get the fundamental (not just a tiny half-sentence) difference between analog and digital.

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So what, exactly, do you find "confusing" about it?

 

We can't help you if we don't know what the problem is!

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

A simple answer: "Four, because bananas have no bones."

If you don't know my whole story, keep your mouth shut.

If you know my whole story, you're an accomplice. Keep your mouth shut. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

Torby wrote:

A simple answer: "Four, because bananas have no bones."

A simpler answer: 42.
Now, what was the question?

 

 

 

 

×

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

A simple answer: "Four, because bananas have no bones."

 hey friend !

take it easy.

guys

Is there any problem with me?

because whenever I asked some thing.you behaved this way!

And I think this is not the way!

when I ask some thing  maybe I didn't found any answer on the net that I can understand!

 

--------------------------------------------------------------

THIS IS IRAN.

YOU  RECEIVED MY MESSAGE FROM MASHHAD...

You can DO EVERYTHING!

Just believe yourself !!!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well - don't you think that, "A simple question" is a pretty pointless title for your thread?

 

Would it not have been more sensible, helpful, & informative for the title to actually relate to the actual question you asked?

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ehsan, you said you were confused, but not what you were confused about. Maybe confused why there would be analog and digital multiplexers perhaps? You need to tell us.
If you ask a good question, you'll get a good answer.

Be careful of anything political - Don't go posting silly things because you're annoyed.

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ehsan,

 

The 74HC153E chip has two halves. Each half behaves the same as the other. So I will just explain one half. Each half has 4 digital inputs and one digital output. These inputs and out can only be digital...so either a low voltage (L/0) or a high voltage (H/1). The purpose of the half is to connect one of the four input signals to the output pin. But only one of these 4 inputs can be "connected" to the output at any time. Now which one gets connected? Well it depends on which combination of signals is connected to the address inputs S0 and S1. Because there are 2 address inputs there can be 4 different combinations of low (L/0) and high (H/1). These are 00, 01, 10, and 11. So you can switch a particular input through to the output by changing the address signals to the required combination. Hopefully this makes it clearer for you. Feel free to ask more if needed.

 

But as others have said, the 74x153 chip is not suitable for multiplexing an analogue signal. The 74x4051, 74x4052 and 74x4053 can be used to do analogue multiplexing.

 

Cheers,

 

Ross

 

Ross McKenzie ValuSoft Melbourne Australia

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK Ehsan2754, I'll give this a try.
If you had posted this question: 
"Is multiplexer model  74HC153E  suitable for multiplexing analog signals to a pin configured to read analog signals? "

 

You would have gotten better answers. The answer is no.

 

You ask if a 74HC153E is suitable for multiplexing an ADC pin. To answer your question we need to know if you are trying to read a analog or digital signal. The reason is because some pins on an AVR can be set up to read analog voltages or digital signals. To answer your question we really need to know what kind of signal you are trying to switch.

 
If the signals are digital and the pins are set up as digital inputs, then yes, you can use a 74HC153E to switch the digital signals. Digital is either ON or OFF.

 

If the signals are analog and the pins are set up as analog signals then you should use a 74hc4051, 74hc4052 or 74hc4053 to switch analog signals. Analog is more complicated, giving you numbers instead of On or OFF. However, I suspect you know this.

 

 

Last Edited: Sat. Jul 25, 2015 - 02:56 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

a digital multiplexor has threshold detection on its input, so it only detects "0" or "1", and a driver on its output, so that it only outputs "0" or "1".

An analog multiplexor is careful to switch the input voltage directly to the output pin, with as little change as possible (typically behaving like a small-value resistor.)

 

(you can probably use an analog multiplexor to multiplex digital signals.  But not the other way around.)

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ehsan2754 wrote:

 hey friend !

take it easy.

guys

Is there any problem with me?

because whenever I asked some thing.you behaved this way!

And I think this is not the way!

when I ask some thing  maybe I didn't found any answer on the net that I can understand!

 

--------------------------------------------------------------

THIS IS IRAN.

YOU  RECEIVED MY MESSAGE FROM MASHHAD...

Tom(Torby) is completely relax, Ehsan.

maybe you misunderstand.

There is no problem but the title of your thread isn't suitable.

 

but here isn't Iran, Ehsan. it is international cyberspace and for your information I have to say Torby is so nice and one of my beloved guy like other guys in here.smiley

 

don't worry Ehasn. please go on and post your questions but with a good title and before search about it on net and when you couldn't find anything then ask your question + a thorough explanation.

 

 awneil asked:

 

So what, exactly, do you find "confusing" about it?

We can't help you if we don't know what the problem is!

 

because he would help you to find your solution and clear you about it not to kid you.

I always wanted to have such a teacher.

 

Have a good times Ehsansmiley

 

"One's value is inherent; money is not inherent"

 

Chuck, you are in my heart!

Last Edited: Sat. Jul 25, 2015 - 11:19 AM