Presentation is loading. Please wait.

Presentation is loading. Please wait.

Lab 8 : Multiplexer and Demultiplexer Systems: MUX : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Security System Basics : DeMUX : Security System Part.

Similar presentations


Presentation on theme: "Lab 8 : Multiplexer and Demultiplexer Systems: MUX : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Security System Basics : DeMUX : Security System Part."— Presentation transcript:

1 Lab 8 : Multiplexer and Demultiplexer Systems: MUX : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Security System Basics : DeMUX : Security System Part 1 : Using a MUX as a logic system : Slide #7 Security System Part 2 :

2 Lab 8: The MUX : An 8 channel multiplexer (MUX) is also called a 1 of 8 MUX. Its function is to direct the flow of binary data from one input channel (I0 … I7) to the output Z. The channel is selected by a 3 bit code at S0, S1, S2. It is a data selector. The input channels represent binary data from 8 different sources. Lets assume the data is from 8 different computers (A … H). Computer A Computer B Computer C Computer D Computer E Computer F Computer G Computer H The data from only one of these computers can be directed to Output Z. The computer data is selected by the 3 bit number at inputs S2, S1, S0. Select inputs: 3 Bit number To select the data from Computer D you select I3 by setting S2=0, S1=1, S0=1 (binary 3). The other 7 computers are not selected The Z output allows the selected data to be inverted by the MUX. MUX Z I2 I1 I3 I4 I5 I6 I7 I0 S0S1S2 Z Slide #2

3 Lab 8 : The DeMUX : An 8 channel demultiplexer (DeMUX) is also called a 1 of 8 DeMUX. Its function is to direct the flow of binary data from the single input channel (I) to one of the output channels (O0…O7). It is a data distributor. The input channel represents binary data from one computer. DEMUX I O2 O1 O3 O4 O5 O6 O7 O0 S0S1S2 The data can be directed to only one of the outputs O0, … O7. Computer A The output channel is selected by the 3 bit number input at S2, S1, S0. Select inputs: 3 Bit number To select O3 set S2=0, S1=1, S0=1 (binary 3). The other 7 output channels are not selected. They remain inactive at logic Slide #3

4 Lab 8 : Security System Basics : Many security systems are used in buildings where the doors to be monitored are at the back of the building and the monitor panel (LEDs) is at the front of the building. The distance between the panel and the doors can be large. Lets assume the security system has 8 doors. The doors are located at the back of the building. A switch is mounted on each door indicates when it is opened. Door open =1 and closed =0. 5V 0 : Closed 1 : Opened 0 : Closed 1 : Opened 0 : Closed An LED panel is used to signal which door is open. The LED panel is located at front of building. Many wires must be connected, over long distances, from the doors to the LEDs. A MUX/DeMUX security system will reduce the amount of wiring. Slide #4

5 Lab 8 : Security System Part 1: A MUX/DeMux security system reduces the amount of wiring. It transfers the door data to the LEDs using 4 wires from the back of the building to the front. Lets begin with door 3 open and all other doors closed. The MUX will have Z=1 when the mod 8 counter is at binary 3 (011). The DeMUX selects output 3 and transfers data (inverse because the output is active low) to the LED. The LED lights as long as counter = 3. The MUX will have Z=0 when the mod 8 counter is on any count other than binary 3 (011). The LED is off when the count is not = The counter has a 10 PPS clock. Each count state last 1/10 th of a second each. Thus O3 activates the LED for 1/10 th of a second for each 8/10 th a second. This results in a blinking LED. The 10 PPS clock is called the scan rate clock. Each door is connected to its corresponding LED for a 1/10 th of a second. It takes 8/10 th of a second to scan all doors. This is fast enough in order not to miss an intrusion. A high speed clock (1KPPS) would give the illusion that the LED is continuously on. The blink rate of 1 milliSec is too fast to detect the LED turning off. Slide #5 DEMUX I O2 O1 O3 O4 O5 O6 O7 O0 S0S1S2 MUX ZI2 I1 I3 I4 I5 I6 I7 I0 S0S1S2 Z Q0Q1Q2 >Clk Mod 8 Counter Door 0 Door 1 Door 2 Door 3 Door 4 Door 5 Door 6 Door 7 10 PPS Note: The Demux has active low outputs. The Demux will invert the door data. Thus Door = 1 will output a 0 from the demux and light the LED

6 Lab 8 : Security System Part 2: The operation of the system will be demonstrated with two doors opened at the same time. Door 1 and Door 5 are both opened the other doors are closed. The system operates quickly and it is difficult to observe all the changes at one time. Concentrate on the counter section. You will see it cycle from 0 to Concentrate on the MUX section. Each door is scanned as the counter cycles from 0 to Concentrate on the DeMUX section. LEDs at O1 and O5 light up sequentially as counter cycles from 0 to Slide #6

7 Lab 8 : Using a MUX as a logic gate system : A mux can be used to construct an entire logic gate system. This was once an important fact that allowed older IC technology designers to replace many single function logic gate TTL ICs with a single mux IC. System changes are also easily accommodated. MUX Z I2 I1 I3 I4 I5 I6 I7 I0 S0S1S2 Z The system we are trying to build has Boolean equation Z = ABC + ABC + ABC + ABC A standard logic gate system using older generation TTL technology would require 4 ICs The first step used to design a MUX logic gate system is to generate the truth table. ABCZ ABC The second step is to connect the MUX inputs directly to 5V or ground as indicated by the truth table. Connect I0 to 5V because Z=1 in the truth table 5V Connect I1 to GND because Z=0 in the truth table Continue … The third step is to connect the MUX select to the inputs of the logic gate system. Connect MSB to S2. C B A The output of the system is taken from Z. Output The result is a 1 IC system that can be easily changed. A system change can be accommodated by a change of 5V or ground connection at the input of the MUX. Slide #7


Download ppt "Lab 8 : Multiplexer and Demultiplexer Systems: MUX : Slide #2 Slide #3 Slide #4 Slide #5 Slide #6 Security System Basics : DeMUX : Security System Part."

Similar presentations


Ads by Google