Experiment 6

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

EE2001 - Digital systems lab Tristate gates

EE2001 - Digital systems lab


Tristate gates
EE2001 - Digital systems lab Tristate gates

▶ Outputs of multiple circuits


Circuit
1
drive the same lines - for
example, display outputs of
either circuit 1 or circuit 2.
Circuit ▶ Another example - Output
2
of multiple memory units
driving the same bus.
▶ Can we connect outputs of
To inputs of display TTL gates?
EE2001 - Digital systems lab Tristate gates

Use a MUX
2-to-1
MUX

S0
Circuit
1
2-to-1
MUX

Circuit
2-to-1
2
MUX

2-to-1
MUX

Can use several 2-to-1 MUXes to route one of the outputs to the
input of the display.
EE2001 - Digital systems lab Tristate gates

Solution with a MUX

MUX Out
B

Select

The number of MUXes needed is equal to the number of output


lines. Larger the number of circuits, larger the size of the
individual MUXes (if you have 4 circuits instead of 2, you need
4-to-1 MUXes).
Need to reduce the number of ICs.
EE2001 - Digital systems lab Tristate gates

VCC

Model for a gate 0

VCC 1 0

Vin Vout VCC

0 1

0
EE2001 - Digital systems lab Tristate gates

Why not connect outputs?

When output is high, typical current


400µA. The current is 10s of mA when
VCC VCC
output is low. In the worst case, could
Will heat up!
destroy one of the switches if outputs
are connected together.
0 1
Voltage could be at an intermediate
level and cannot be interpreted as a 0 or
mA
1.
Should make sure only one gate drives a
wire at any given time.
EE2001 - Digital systems lab Tristate gates

Tristate gates

VCC
Truth Table of Tristatable
Inverter
Enable Input Output
0 X Z
Input 1 0 1
Enable Output 1 1 0

X: Dont care
Z: Tristate
Output is an open circuit when
Enable = 0.
EE2001 - Digital systems lab Tristate gates

VCC VCC

I1

I0 Output Enable
Enable

Enable only one gate at a time - multiple gates can drive a


single wire.
EE2001 - Digital systems lab Tristate gates

Experiment 6

Given two 4 bit inputs A and B, design a circuit to display


MAX(A,B) using tristate buffers (74244). Please ask the lab staff
for this component. Read the datasheet carefully before you use it.

You can use a magnitude comparator (7485) and any other gates
required. Use the circuit you wired in Experiment 5 to display the
outputs on seven segment displays.

You might also like