1.Design a Three Input NAND Gate Using Diode Logic and a Transistor Inverter
Total Page:16
File Type:pdf, Size:1020Kb
1.Design a three input NAND gate using diode logic and a transistor inverter. The below Figure shows the circuit diagram for a three input LS-TTL NAND gate(74LS00). We know that NAND function can be obtained by inverting the output of a diode AND gate. The circuit is basically divided it into three functional parts. They are • Diode AND gate and input protection • Phase splitter • Output stage The below Figure shows the circuit diagram for a two input LS-TTL NAND gate(74LS00). We know that NAND function can be obtained by inverting the output of a diode AND gate. The circuit is basically divided it into three functional parts. They are • Diode AND gate and input protection • Phase splitter • Output stage As shown in figure diodes D1X and D1Y and resistor R1 forms a diode AND gate. The Clamp diodes D2X and D2Y at the input are used as protective diodes. These diodes protect the circuit from large negative transients on input lines. The transistor Q2 acts as an inerter. The Q2 alongwith the surrounding resistors form a phase splitter that controls the output stage. The diode AND gate and the phase splitter, thus represents the NAND function. Depending on whether the diode AND gate produces a “low” or a “high” voltage at VA, Q2 is either cut off or turned on. FUNCTION TABLE: X Y Z VA Q2 Q3 Q4 Q5 Q6 VOUT LOW LOW LOW LOW OFF ON ON OFF OFF HIGH LOW LOW HIGH LOW OFF ON ON OFF OFF HIGH LOW HIGH LOW LOW OFF ON ON OFF OFF HIGH LOW HIGH HIGH LOW OFF ON ON OFF OFF HIGH HIGH LOW LOW LOW OFF ON ON OFF OFF HIGH HIGH LOW HIGH LOW OFF ON ON OFF OFF HIGH HIGH HIGH LOW LOW OFF ON ON OFF OFF HIGH HIGH HIGH HIGH HIGH ON OFF OFF ON ON LOW The output stage has two transistors, Q4 and Q5, only one of which is on at any time The TTL output stage is sometimes called a totem-pole or push-pull output Similar to the p- channel and n-channel transistors in CMOS, Q4 and Q5 provide active pull-up and pull-down to the HIGH and LOW states, respectively. The functional operation of the TTL NAND gate is summarized in above Figure. The gate does indeed perform the NAND function, with the truth table and logic symbol shown in (b) and (c) TTL NAND gates can be designed with any desired number of inputs simply by changing the number of diodes in the diode AND gate in the figure. It is important to note that all the transistors used are schottky clamped transistors. The circuit uses a darlington pair (Q3 and Q4) to provide shorter output rise time when switching from OFF to ON. The transistor Q6 connected in series regulates the current flow into the base of Q and helps in turning Q5 OFF rapidly. However, when the TTL output is changing from HIGH to LOW or vice versa, there is a short time when both transistors may be ON. The purpose of R5 is to limit the amount of current that flows from VCC to ground. 2.Explain sinking current and sourcing current of TTL o/p.which of the parameters decide the fanout and how? SINKING AND SOURCING CURRENTS The definitions of sinking and sourcing currents are shown in below Figure. A device output is said to sink current when current flows from the power supply, through the load, and through the device output to ground as in below figure. When a TTL input is driven LOW by the output of another TTL gate. Transistor Q5 in the driving gate is ON, and thereby provides a path to ground for the current flowing out of the diode in the driven gate. When current flows into a TTL output in the LOW state, as in the case, the output is said to sinking current. The output is said to source current when current flows from the power supply, out of the device output, and through the load to ground as in below fig. When a TTL input is driven HIGH by the output of another TTL gate. Transistor Q4 in the driving gate is ON, enough to supply the small amount of leakage current flowing through reverse biased diodes in the driven gate. When current flows out of a TTL output in the HIGH state, as in the case, the output is said to sourcing current. 3. Explain the following terms with reference to TTL logic 1.logic levels 2. DC noise margin 3.Low state unit load 4. High state fanout 1.Logic Levels The TTL device manufacturers specify the four voltage parameters in the datasheet. They are: VIH(min)-High-Level Input Voltage: It is the minimum voltage level required for a logical 1 at an input. Any voltage below this level will not be accepted as a HIGH by the logic circuit. VIL(max)-Low-Level Input Voltage: It is the maximum voltage level required for a logical 0 at an input. Any voltage above this level will not be accepted as a LOW by the logic circuit. VOH(min)-High-Level Output Voltage: It is the minimum voltage level required for a logical 1 for an output under defined load conditions. VOL(max)-Low-Level Output Voltage: It is the maximum voltage level required for a logical 0 for an output under defined load conditions. 2.NOISE MARGINS: In practice due to unwanted signal called noise, sometimes, the voltage at the input drops below VIH(min) or rise above VIL(max) , which produces unpredictable operation. Noise margin is classified into two types. They are: 1.High state DC Noise Margin(VNH)-It is the difference between the high level output voltage and high level input voltage. VNH = VOH(min) - VIH(min)=0.4 2. Low state DC Noise Margin(VNL)-It is the difference between the low level input voltage and low level output voltage. VNH = VIL(max) - VOL(max)=0.4 These two are illustrated in below figure. FANOUT The fan-out of a logic gate is the number of inputs that the gate can drive without exceeding its worst-case loading specifications. The fan-out depends not only on the characteristics of the output, but also on the inputs that it is driving. Fan-out must be examined for both possible output states, HIGH and LOW. The maximum LOW-state output current IOLmax for TTL gate is 8mA.The maximum LOW state input current IILmax is -0.4mA. Therefore, the LOW-state fanout or low state unit load for TTL is 20. IOLmax 8mA LOW state unit load= / / = / /= 20 IILmax −0.4mA Also the maximum HIGH-state output current IOHmaxC is -400µA. The maximum HIGH state input current IIHmax is 20µA. Hence the HIGH-state fanout is also 20 i.e., The HIGH-state and LOW-state fan-outs of a gate are not necessarily equal. In general, the overall fanout of a gate is the minimum of its HIGH state and LOW-state fanouts, i.e., 20. IOHmax −400µA HIGH state fan-out = / / = / /= 20 . IIHmax 20µA 4.What is meant by tri-state logic? Draw the circuit of tri-state TTL logic and explain its functions. In digital electronics three-state, tri-state, or 3-state logic allows an output port to assume a high impedance state, effectively removing the output from the circuit, in addition to the 0 and 1 logic levels. Figure 9 shows a tri-state TTL inverter. When E is H, the gate is enabled and behaves like a normal inverter; when E is L, the gate output is disabled, and there is a high impedance looking into the output (the ouput is essentially open-circuited). Figure 9: TTL tri-state inverter. The operation of the tri-state inverter is summarised in the table. Enable Input Output L X Hi-Z H L H H H L 5.Draw the two input TTL NAND gate and explain its operation. The below Figure shows the circuit diagram for a two input LS-TTL NAND gate(74LS00). We know that NAND function can be obtained by inverting the output of a diode AND gate. The circuit is basically divided it into three functional parts. They are • Diode AND gate and input protection • Phase splitter • Output stage FIG: The circuit diagram for a two-input LS-TTL NAND gate, 74LS00 As shown in figure diodes D1X and D1Y and resistor R1 forms a diode AND gate. The Clamp diodes D2X and D2Y at the input are used as protective diodes. These diodes protect the circuit from large negative transients on input lines. The transistor Q2 acts as an inerter. The Q2 alongwith the surrounding resistors form a phase splitter that controls the output stage. The diode AND gate and the phase splitter, thus represents the NAND function. Depending on whether the diode AND gate produces a “low” or a “high” voltage at VA, Q2 is either cut off or turned on. FUNCTION TABLE: X Y VA Q2 Q3 Q4 Q5 Q6 Z LOW LOW LOW OFF ON ON OFF OFF HIGH LOW HIGH LOW OFF ON ON OFF OFF HIGH HIGH LOW LOW OFF ON ON OFF OFF HIGH HIGH HIGH HIGH ON OFF OFF ON ON LOW Fig. TRUTH TABLE Fig. Logic symbol The output stage has two transistors, Q4 and Q5, only one of which is on at any time The TTL output stage is sometimes called a totem-pole or push-pull output Similar to the p- channel and n-channel transistors in CMOS, Q4 and Q5 provide active pull-up and pull-down to the HIGH and LOW states, respectively.