Build the flip-flop described in the lecture

Assignment Help Other Engineering
Reference no: EM131077200

"Almost all new ideas have a certain aspect of foolishness when they are first produced."

     --Alfred North Whitehead  
Objectives:

To understand sequential logic and its applications in digital systems.

Exercise 1. Discrete Flip-Flop

Build the flip-flop described in the lecture from discrete NAND gates:

Connect the outputs to two LEDs of the Logic Monitor and the two inputs to two of the Logic Switches (set both switches high). What is the state of the outputs when you first power up the circuit? Try it several times. Is it consistent? Momentarily bring input A low. Does the output change? If not, try bringing input B momentarily low. Does it change now?

For whichever input changed the output, try bringing it momentarily low again several times. Does the output change? Try bringing the other input momentarily low. Does it change now? Repeat the sequence several times until you have a good feeling for what is happening. Discuss the properties of this setup in your report.

Leave your flip-flop set up; you will need it for a later exercise.

Exercise 2. JK Flip-flop

Go on the web and find the data sheet for a 74LS76A Dual Edge-triggered JK flip-flop, then wire up ½ of the chip (i.e., either one of the two JKs on the chip).

Connect J and K to two unused logic switches. Clock the circuit with pulses from the "NC" contact of one of the debounced pushbuttons, with a pull-up resistor tied to 5V.
(Ask your instructor or TA if you're not sure how to connect this, or Google "pull-up")

Try all four combinations of J and K (JK=00; JK=01; JK=10; JK=11), all with the ~PRESET and ~RESET inputs held high. ( ß This is important.)

Write out a truth table. How does it compare with the one given in the data sheet?

Does it clock on the negative-going edge (when the button is released) or the positive one (when the button is pressed down)?

What happens when you bring the ~RESET pin low? What about ~PRESET?
(Connect these to two other logic switches to be able to control them.)

Exercise 3. Divide-by-4

Now cascade the two flip-flops in the package, as shown. (The two flip-flops work identically, so you can choose either of them to be "first" as long as you remember which is which and connect the inputs accordingly.) It can be helpful to write down the pin numbers on the schematic below, to help you know which pins to connect. (Use the information from the datasheet to determine which pins do what.) Note that the "+5" is used as a logic input here; you will still need to connect power and ground, as always.

Display the states of the two outputs, Q, on LED indicators. What should happen on each flip-flop when both inputs, J and K, are tied high (look at the truth table)?

Clock it from one of the debounced pushbuttons several times and convince yourself that it is a divide-by-4 circuit, and that it counts in binary through the sequence:
0, 1, 2, 3, 0, 1, 2, 3, 0, 1 etc.
(The output from the left flip-flop is the lowest bit - the ones' place.)

 

Exercise 4. Switch Debouncing

Instead of clocking the divide-by-4 from one of the debounced pushbuttons, clock it from the following circuit: (Use the pushbutton switches provided for this lab; do not use the "debounced pushbuttons" on the CADET II trainer).

Clock your counting circuit several times with the switch.

Does it count in the normal way? What is going on?

The problem with the above circuit is that normal (non-debounced) switches are "noisy". When they are pressed or released, the contacts do not always connect and disconnect cleanly, and several pulses can be transmitted for a single press of the switch. (This is referred to as contact bounce, or clock bounce when such a circuit is used as a clock input.)

You can fix this using the original flip-flop circuit that you saved from Exercise 1. Modify it in the following way:

(Use a SPDT switch, located in the lower right part of the CADET II trainer.
If you're not sure how to wire it, ask your instructor or TA.)

Does it work properly now? This is how the switches on your training board are "debounced."

Keep your debouncing circuit set up for the rest of the lab.

Exercise 5. D-type ("Data") Flip-flop

Remove the 74LS76 and replace it with a 74LS74 dual D flip-flop. (You'll have to look up the pinouts for this one, too.) Wire up one of the D's inside; there are two.

This device also has "~PRESET" and "~RESET" pins. Use the Function table in the data sheet you found to set these to the right values.

Try changing the input and clocking it across to the output (use your debounced switch for this). Does it clock through on the rising edge or the falling edge?

Try changing the Preset and clear (separately), and then toggling the input and clock. Do the Preset and/or Clear inputs override the D input and/or the clock?

Next, connect  to D to make a toggling flip-flop, as in the circuit below.
(Use your debounced input from above to clock it, not a simple switch as shown.)
Note that the switch is only connected to the CLK input; it does not connect to the wire between ~Q and D.

Clock it several times to see what it does.

Extra credit:

Finally, wire up the synchronous divide-by-three circuit shown below.

Can you figure out how it works? Describe how it works in your lab writeup. For full credit, draw a timing diagram and describe what the output duty cycle is, given a 50% duty cycle input. (You may want to simulate this in MultiSim, or you could analyze the circuit, clock-by-clock.)

Reference no: EM131077200

Questions Cloud

Long-term investment decisions : Assume that the low-calorie frozen, microwavable food company from Assignments 1 and 2 wants to expand and has to make some long-term capital budgeting decisions. The company is currently facing increases in the costs of major ingredients.
Analysis of the effectiveness of current procedures : Outline includes ideas for: An analysis of the effectiveness of current procedures that are in place for the issue or situation selected Analysis is based on evolutional perspectives on health care economics and economic theories.
What is the probability that four randomly selected : Marijuana Use According to the Statistical Abstract of the United States, about 17% of all 18- to 25-year-olds are current marijuana users. What is the probability that four randomly selected 18- to 25-year-olds are all marijuana users?
Impact of government regulation : Take a position on whether the banking industry needs more or less government regulation. Support your position with two (2) examples of the impact of regulation.
Build the flip-flop described in the lecture : Connect the outputs to two LEDs of the Logic Monitor and the two inputs to two of the Logic Switches (set both switches high). What is the state of the outputs when you first power up the circuit?
What is the probability the item is nonconforming : Final products are sometimes selected to go through a complete inspection before leaving the production facility. Suppose that 8% of all products made at a particular facility fail to conform to specifications. Furthermore, 55% of all nonconformin..
Problem regarding the cash flow analysis : Cash Flow Analysis-Gathering data relating to current cash inflows and outflows
Adequate savings scenario : Treat savings as a fixed expense - Automate, Direct Deposit, Payroll deductions Fixed expense strategy can help generate additional savings contributing to further growth in new worth (Dollar Cost Averaging)
How many inspectors should be hired to keep the probability : What is the probability that both inspectors do not identify a low-quality timber? How many inspectors should be hired to keep the probability of not identifying a low-quality timber below 1%?

Reviews

Write a Review

Other Engineering Questions & Answers

  Food nano technology and emulsion technology

Requires the completion of a written research paper on food nano technology and emulsion technology and this assignment requires students to interrogate and report a review on the topic with pictures figures and diagrms.

  What is the pressure drop in each of the airways

what is the pressure drop in each of the airways and the total pressure drop in the series combination of airways and what is the pressure drop in each of the airways and the total pressure drop in the series combination of airways?

  What are the poles of the cmrr

A differential amplifier is biased by a current source having an output resistance of 1MΩ and an output capacitance of 1 pF. The differential gain exhibits a dominant pole at 2 MHz. What are the poles of the CMRR?

  Thermal efficiency for the carnot

The net work output and the thermal efficiency for the Carnot and the simple ideal Rankine cycles with steam as the working fluid are to be calculated and compared.

  Determining the volume of the anchor

An iron anchor of density 7870 kg/m3 appears 200 N lighter in water than in air.

  Copy and paste the register window at the second iteration

IV. 1.A. Copy and paste the source code. IV. 1. B. Copy and paste the register window at the second iteration where the carry becomes set. Highlight the carry flag to show that it is set.

  Construct the ipr at average reservoir pressure

A vertical oil well is producing from a saturated reservoir with average reservoir pressure of 3000 psig. The well is flowing at the stabilized rate of 400 STB/day at bottomhole flowing pressure of 2580 psig.  The maximum production rate at average..

  Design a synchronous counter that will count given sequence

Design a synchronous counter that will count the following sequence. 0, 1, 4, 5, 8, 9, 12, 13 and then recycle. Implement your circuit using negative edge-triggered J-K Flip Flops (74LS76). The clock will be a 5V, 1Hz pulse signal.

  What would be purpose of connecting a parallel-tuned circuit

Which of the following is a disadvantage of using a resistor in place of an inductor in a power-supply filter - What would be the purpose of connecting a parallel-tuned circuit into an antenna circuit?

  Control and loop structures in python

Choose two loop structures and explain which you think is most convenient and why. Also, choose two control structures such as if else blocks and case statements and explain which you think is the most convenient and why.

  Complete truth table for a three-input logic device

a. How many lines will be in a complete truth table for a three-input logic device? Show your reasoning or calculations. b. How many bits are necessary to allow for at least ten different choices? Show your reasoning or calculations.

  Problems related to unctioning reinforced concrete pipe rcp

Calculate the Stations & Elevations for all of the U/S reaches including the transitions.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd