Ask Other Engineering Expert

"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.)

Other Engineering, Engineering

  • Category:- Other Engineering
  • Reference No.:- M91804033

Have any Question?


Related Questions in Other Engineering

Register design a cpu register is simply a row of

Register design A CPU register is simply a row of flip-flops (i.e. SR, JK, T, etc) put side by side in an array to make the size of register required. For example, an 8 bit register has 8 flip-flops side by side for stor ...

A detailed review of spatial modulation and simulation

A Detailed Review of Spatial Modulation and Simulation Learning Outcomes a. Learn how to model mobile communication channels d. Discern knowledge development and directions on the recent advances in 4G to the research pr ...

Mine safety amp environmental engineering assignment -part

Mine Safety & Environmental Engineering Assignment - Part 1 - Questions 1. Occupational health and safety is the primary factor that needs to be considered in the mining industry. Discuss this statement. 2. Define the fo ...

Projectflow processing of liquor in a mineral refining

Project Flow Processing of Liquor in a Mineral Refining Plant The aim of this project is to design a flow processing system of liquor (slurry) in a mineral (aluminum) refining plant. Aluminum is manufactured in two phase ...

Learning outcomes evaluate multiuser communication and

Learning Outcomes Evaluate multiuser communication and resource sharing techniques; Apply the techniques of, and report on, digital communication applications using Matlab and hardware devices. Assignment Description The ...

Operations engineering assignment -please select only one

Operations Engineering Assignment - Please select only one of the following case studies for your assignment: CASE A. Tesla Motors Tesla is an innovative manufacturer that designs, assemble and sells fully electric vehic ...

Select a risk problem from the list below and prepare a

Select a risk problem from the list below and prepare a risk management plan in accordance with AS/NZS ISO 31000:2009. Please ensure that: - Establish the context clearly, in accordance with the Standard; - Define your s ...

Engineering materials term paper assignment -conduct a

ENGINEERING MATERIALS TERM PAPER ASSIGNMENT - Conduct a thorough literature search and write a 15-20 page technical review paper on the evolution of the engineering materials used in the manufacturing of any one of the f ...

Task 1using the lab kit design a circuit for the processor

Task 1: Using the lab kit, design a circuit for the processor to control the output of a connected 7-segment LED display device. You will be provided with a standard common anode 7-segment display of the type FND-507 (or ...

Control theory - lab reportsfor experiments 1 to 4 you must

Control Theory - Lab Reports For experiments 1 to 4 you must undertake the following: a) At the start of each section (including the pre-lab activities) there are a number learning outcomes. That is, what students should ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As