OK, let us start with the basic idea of multiplexers. You can look at them like a "One of Eight" switch where one line of the switch stays the same in all cases. 4051 is actually a MUX/DEMUX but let us not complicate this for the moment. Let us look at the datashet for example http://focus.ti.com/lit/ds/symlink/cd74hct4053.pdf PAGE 3
Functional diagram of 4051:
COM In/Out HERE IS WHERE YOU CONNECT YOUR TV
CHANNEL In/Out HERE YOU CONNECT YOUR CAMERAS
ENABLE pin must be low to make enable the chip
S0,S1,S2 are the Select Pins (Adress) and they decide how you switch the signal, look at the diagram under the picture in PAGE 3
S2=0 S1=0 S0=0 >> Connect Pin 13 to Pin 3
S2=0 S1=0 S0=1 >> Connect Pin 14 to Pin 3
and so on
So you see 4051 does not use serial communication, it uses a 3 pin + enable parallell interface. If you want to have many chips on the same Slect Pin bus you have to figure out a way to only enable one chip at the time, this can be done by connecting the enable pins from each 4051 to the PIC or..... Connect the enable pins to a 4051 and control enable for all chips that way. Just at matter of how many pins you have left on your PIC.
You can also connect 2 4051 in parallell, and feed video to one chip and Audio to the other chip, by doing this you always get the audio from the selected camera.
Does this make things more clear?
Bookmarks