Lab Experiment on Schmitt Triggers and Decoders with TTL Devices, Lab Reports of Basic Electronics

A lab experiment where students study the switching of ttl devices using an offset sine wave from an oscillator. The experiment involves connecting the offset ac source to ttl inverters made from nand gates and observing the output. The document also covers the schmitt trigger concept, its roles of on and off voltages, and the use of decoders to turn on multiple circuits with a single control signal.

Typology: Lab Reports

Pre 2010

Uploaded on 07/28/2009

koofers-user-t64
koofers-user-t64 🇺🇸

10 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Schmitt Trigger, Decoders – Page 1
Schmitt Trigger Inputs, Decoders
TTL Switching
In this lab we study the switching of TTL devices. To do that we begin with a
source that is unusual for logic circuits, an offset sine wave from an oscillator.
Experiment 1: Setup the function generator as in Figure 1 to make a sine signal that is
offset positively, with a maximum output not greater than 5 volts. The goal is to obtain a
voltage that swings from a value near zero to a positive value that will appear as a high
state to TTL input (about 2 volts) as shown in Figure 2.
The diode is for protection of the
TTL devices that will be connected
to this source. It ensures that the
input of the source does not go
more negative than –0.7 volts.
An ideal diode would not permit
any negative voltage. If the offset
source would otherwise have some
negative swing then the ideal diode
would lead to an output that looks like Fig. 4. For a real diode the output, seen on the
scope, looks like Fig. 3.
Experiment: Vary the level of the sine signal and the offset so that you see an output
like Fig. 3. Then set the level and the offset so that the output resembles Fig. 2.
Function Generator
V
150
Sine
Offset
Figure 1: Sine Signal Generator
Figure 2: Sine Wave with offset.
V
3
0
t
pf3
pf4
pf5

Partial preview of the text

Download Lab Experiment on Schmitt Triggers and Decoders with TTL Devices and more Lab Reports Basic Electronics in PDF only on Docsity!

Schmitt Trigger Inputs, Decoders

TTL Switching

In this lab we study the switching of TTL devices. To do that we begin with a source that is unusual for logic circuits, an offset sine wave from an oscillator.

Experiment 1: Setup the function generator as in Figure 1 to make a sine signal that is offset positively, with a maximum output not greater than 5 volts. The goal is to obtain a voltage that swings from a value near zero to a positive value that will appear as a high state to TTL input (about 2 volts) as shown in Figure 2. The diode is for protection of the TTL devices that will be connected to this source. It ensures that the input of the source does not go more negative than –0.7 volts.

An ideal diode would not permit any negative voltage. If the offset source would otherwise have some negative swing then the ideal diode would lead to an output that looks like Fig. 4. For a real diode the output, seen on the scope, looks like Fig. 3.

Experiment: Vary the level of the sine signal and the offset so that you see an output like Fig. 3. Then set the level and the offset so that the output resembles Fig. 2.

Function Generator

V

Sine^150 Ω Offset

Figure 1: Sine Signal Generator

Figure 2: Sine Wave with offset.

V

(^0) t

Experiment 2 : Connect the offset AC source to a TTL inverter made from a NAND gate on a 74LS00 as shown in Figure 5. [Don’t forget the +5 volt supply to pin 14 and the ground to pin 7.]

You should observe the output go low when the input sine goes above the switching voltage. You should observe the output go high when the input sine goes below the switching voltage.

1 You should find that the switching voltage is about 1.5 volts. Is this what you find?

2 Measure the rise time of the output.

The Schmitt Trigger Input

Read about the Schmitt Trigger (ST) on page 239 of the D&H text. Understand the roles of ON and OFF voltages.

(^0) t

(^0) t

Figure 4: Sine Wave with Ideal Diode Figure 3: Sine Wave with Diode.

Figure 5: Sine inverter circuit.

A for input

Sine^150 Ω Offset

5V

B for output Supply

Remember the answer.

The quad two-input NOR gate:

The 7402 (or 74LS02) is a quad two-input NOR gate. The pin-out is shown in Figure 8:

Experiment: Verify the NOR truth table for one or two of the logic gates of a 74LS02: [This chip also needs a +5 volt supply at pin 14 and a ground at pin 7.]

Six NOR gates make a 2-to-4 Decoder

Suppose that we want to turn on any one of four circuits from some remote location. We could send control signals along four individual control lines. Alternatively, we could encode the data in a digital word and decode it downstream with a scheme like this:

Table 1: Two to Four Line Decoder

Code Action Downstream A B 0 0 Turn on circuit 0 0 1 Turn on circuit 1 1 0 Turn on circuit 2 1 1 Turn on circuit 3 The decoder at the downstream location is a 2-line to 4-line decoder. We can make it from six NOR gates as shown below in Figure 9.

ground

+5V

Figure 8: Pinout of 7402.

Calculation: Complete the truth table for the four outputs w, x, y, and z, given the four possible inputs from lines A and B.

Experiment: Build the circuit as shown in Figure 9 using the diode array for indicators. Note that an LS NOR gate is not capable of sourcing enough current to burn out an LED. Therefore, we do not need current limiting resistors. We can hook the LEDs of the array directly to the outputs of the NOR gates. Verify that with the four control codes you can turn on any one of the four LEDs.

Three-to-eight Decoder

If we want to get really serious about this matter of coding and decoding we can use a chip that is especially designed to decode three data lines and give eight output lines.

Question: Why eight?

A copy of the 74138 decoder’s data page is available in the Supplementary Document area of the course web page. Print out a copy for your use. If you look at the table of outputs Y0 through Y7 you will see that these are “active low.” That means that when an output is turned on the corresponding pin goes low. Therefore, to use this decoder to light the LEDs of the array we let the decoder sink current, as shown in Figure 10 below.

2K

Z

Y

X

W

B

A

5V

2K

Figure 9: Two to four line decoder.