Jump to content

Multiplexing


Fear the Weasel

Recommended Posts

Hi there,

I'm in the process of building a Midibox that uses encoders.  I plan on writing my own custom C code for the project so I've of course been going through all the current source code but there's one main feature of MIOS I don't understand.  Multiplexing.

Coming from a software background and not a hardware one I'm having a few problems understanding the concept of multiplexing LED's.  How does this work? (in a hardware sense)  Is the microcontroller going through each turning it on quickly then doing the same to the next set but so quickly I can't see the difference?

Just a brief explanation would be very helpful.  Sorry for my hardware newbieness and feel free to laugh out loud if my explanation is way off mark.....  ;)

Cheers.

Link to comment
Share on other sites

What a multiplexer (mux) does can be described like this:

If you have 7 different signals that you need compress onto one wire you can set up a device to read the level of each input, one after another, and do this so quickly that you don't lose fidelity (think of it like sampling audio).  At the other end of the wire there is a de-multiplexer (demux) that switches in sync with the mux such that it reads the value of the signal at just the right time and routes it to an output so that what you see at a given output wire is what was seen at a given input wire. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...