






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







More Circuits Computer Science 240 Laboratory 6 This laboratory uses digital devices to illustrate concepts of numeric representation that have been discussed in lecture. The experiments will give you more practice building physical circuits and using LogicWorks to simulate the circuits. It also introduces the oscilloscope as a laboratory tool. Exercise 1. Connect IC 7493 by wiring the circuit as shown in Figure 1 (the power should be off when you are wiring). Note that the diagram shown is a logical wiring diagram, as discussed in the class notes. To make the actual connections, you must use the pin numbers corresponding to the physical layout of the device (pin 1 to the left of the notch, pins numbered successively in a counterclockwise fashion around the device). Figure 1. IC 7493 Turn the power on and observe the four indicator lamps. Press the PB1 button repeatedly, until all the lamps are dim. Then, record the lamp outputs each time you press the button, until the outputs are all dim again. Record your observation below (use a โ1โ to indicate lamp lit, and a โ0โ for not lit): QD QC QB QA 0 0 0 0 (start the truth table with all 0's) A B R R QA QB QC QD GND (^14) Vcc 1 2 3 12 9 8 11 Lamps 10 5 7493 PB 5 6 7 8
Do you recognize the pattern of the lamp outputs? How would you characterize this pattern? Describe what you think this device does: Exercise 2. Turn the power off to your circuit. Do not disconnect your circuit! You will be adding a device to it in this exercise. Insert the TIL311 device shown in the logical diagram of Figure 2 into your protoboard (Note that the actual device has a double notch on one end, and pin 1 is to the left of the double notch, as shown in Figure 3). Connect the inputs A0 โ A3 of the TIL311 to the outputs QA โ QD of the 7493. Figure 2: Logical Diagram Figure 3: Physical pin layout Power up your circuit. Observe the TIL311 as you repeatedly push the PB1 button. Record the symbols displayed for each of the 16 counts: What do these symbols represent? What is the purpose of the TIL311, and how is that related to what the 7493 does? +5V 3 2 13 12 7 GND Vcc Enable
Vcc A A A A GND 1 14 5 8 Enable
Your final result should be a diagram showing the time relationship of the clock and the four outputs in one composite diagram having at least 16 pulses : Do not disconnect your circuit! You will continue to experiment with it in exercise 5.
LogicWorks Exercise 4: You can observe the outputs of the binary counter in LogicWorks, as well. Open LogicWorks, and implement the binary counter as shown below (use a clock as an input to CLKA (you can find it in the Simulation IO library in the Parts Palette ): Use the Text Tool in the Drawing Toolbar to label the CLKA input as CK โ to label a signal, you must position the Text Tool to touch the wire representing the signal (not the clock input device, itself). You will know you have done it correctly if the text labeling color is pink, and you see the signal listed in the Timing Window display at the bottom on the screen. In the same way, label each of the outputs of the binary counter (in the following order) as QD , QC , QB , and QA. Once the circuit is complete, make sure to click the Clear Unknowns button. Slow down the clock rate with the Set Simulator Speed slider in the Simulation Toolbar (drag it towards the left). In the Timing Window , you should observe 5 waveforms that closely resemble the ones you sketched for the previous exercise (if you can't see all five, make the Timing Window larger). Hit the Prnt Scrn key on your keyboard to copy an image of your circuit design and timing windows into the copy buffer on your computer. Open Microsoft Word and Paste the copy buffer into a file. Print the result and attach the hardcopy to your lab report. Keep your circuit open, as you will use it in the final exercise today.
Slow the frequency of the function generator down to about 1 Hz, and observe the new count sequence. Record the counts being produced: QD QC QB QA This is how R1 and R2 act as the reset inputs of the binary counter: when both R1 and R2 are equal to 1, all outputs clear to 0. In the current circuit, this occurs on count 1010 (QB AND QD = 1), or decimal 10. That value is never actually seen at the outputs, however, because as soon as it occurs, the four outputs immediately clear to 0. Therefore, the largest value that actually can be observed at the outputs is the value 1001, or decimal 9 (the value immediately BEFORE 1010). Since the count goes from 0 to 9, and then repeats itself, this circuit is called a decimal counter. Increase the frequency to about 3000 Hz, and observe the clock waveform and the four outputs on the oscilloscope. Obtain an accurate timing diagram showing the time relationship between the clock and the four outputs. Make sure to include at least 16 clock pulses in the composite timing diagram:
Other Count Sequences Exercise 6: It is possible to count up to any terminal value you wish. If you wanted to modify your circuit to count to 5 and then reset, what changes would you make? Predict the waveforms for the new circuit by sketching the pattern: Using the Binary Counter Exercise 7. When repetitive signals with known patterns and relationships are needed in a design, the binary counter is a useful device. As a final exercise, the operation of three basic gates , the NAND, NOR, and XOR, is investigated, using LogicWorks and the outputs of the binary counter. Find a 2-input gate of each of the above types in the LogicWorks Simulation Gates library of the Parts Palette. Add these to the right of your binary counter circuit (do not connect them to the binary counter). Simulate A and B inputs to the three gates with binary switches (you only need 2 switches, and the three gates can share the inputs of those 2 switches). Display the outputs of the three gates with 3 binary probes. Demonstrate to the instructor. Give the truth table for each of the gates: F = NAND (AB)โ G = NOR (A+B)โ H = XOR(ABโ + AโB)