Jump to content

Recommended Posts

Posted

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.

Posted

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. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...