You are on page 1of 6

4Bit SERIAL IN/SHIFT RIGHT/SERIAL OUT REGISTER Introduction: This lab will illustrate an important design practice when

building digital sequential circuits: Always use a clean clock signal. As stated in the DEBOUNCING SWITCH WITH TRANSISTOR LED DRIVER CIRCUIT a common electric switch contacts can generate small voltage spikes that can produce sporadic states for a typical sequential circuit (i.e. Digital Counter or Shift Register). The Open/Close transitions associated with a non conditioned electrical switch will allow the sequential circuit to behave abnormally because of the Voltage Switching Threshold of digital ICs. Typically a +2.5V signal will be considered a logic 1. All voltages below + 1.0V the switching threshold value will be considered logic 0. Therefore, using a non-conditioned electrical switch will reach these switching conditions, thereby allowing the outputs to toggle sporadically. To alleviate this problem a debouncer circuit can be used to clean up the switches noisy contacts. In this Lab this electrical noise condition will be observed using a 4 Bit SerialIn/Shift Right/ Serial Out Register. Bill Of Materials (BOM) (1) (1) (4) (4) (4) (1) (2) (1) 7400/74LS00 NAND Gate 7404/74LS04 Hex Inverter 10K resistors 330 or 470 resistors LEDs DIP Switches 7476/74LS76 Dual JK Flip-Flop ICs SPDT

D.Wilcher 1/24/07

Circuit Assembly a. Take a small Single Pole-Double Throw (SPDT) switch and solder 3 small 22AWG (American Wire Gauge) solid wires to the tabs on the electrical device. See Figure 1

b. Build the circuit as shown in Figure 2 using a solderless breadboard. NOTE: The SPST switches are from the DIP Switch pack. c. Adjust the DC Power Supply for +5V using a Digital Multimeter-(DMM). d. The following 4 Bit data will be loaded into the Serial-In/Shift Right/Serial Out Register: 10101 e. Toggle the Reset Switch (SW3) to clear the Shift Register. f. Due to the inverse logic of the switch: Logic 1 = Switch Open, Logic 0 = Switch Close. g. Open Data Switch (SW2) Logic 1. h. Toggle the CLK Switch (SW1). (Observe the LEDs You might see 2 of them ON!) i. Close Data Switch (SW2) Logic 0. j. Toggle the CLK Switch (SW1). (Observe the LEDs You might see 1 or 2 of them turn ON!) TECH NOTE: These sporadic states of several LEDs turning ON with ONE CLK input is based on the non conditioned CLK Switch (SW1). D.Wilcher 1/24/07

k. Now remove the CLK Switch (SW1) circuit and replace it with the Debouncer as shown in Figure 3.NOTE: Turn off the +5VDC Power Supply upon removing and adding the circuits l. Turn on the +5VDC Power Supply and clear the Registers using the Reset Switch (SW3). m. Repeat steps g thru j until all of the 4 Bit Data has been placed into the Register. TECH NOTE: These operation of the LED states should be non sporadic. All of the flip-flops should display the correct binary data of 1010.

D.Wilcher 1/24/07

SCRATCH SHEET OF PAPER!!!!!!!!

D.Wilcher 1/24/07

Figure 2. 4 Bit Shift Register (Serial-In/Shift Right/Shift Out)

D.Wilcher 1/24/07

Figure 3.4 Bit Shift Register (Serial-In/Shift Right/Shift Out) with Debouncing Circuit

D.Wilcher 1/24/07

You might also like