1 / 39

Lec 11 Flip Flop Excitation Tables

Lec 11 Flip Flop Excitation Tables. CSCE 211 Digital Design. Topics Sequential Circuits SR Latch Clocked SR Master Slave Master Slave VHDL Readings: 5.4, 5.9, 5.10, 4.4. October 21, 2015. Overview. Last Time Sequential Circuits: Basic Nor Latch New Sequential Circuits

Download Presentation

Lec 11 Flip Flop Excitation Tables

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lec 11Flip Flop Excitation Tables CSCE 211 Digital Design Topics • Sequential Circuits • SR Latch • Clocked SR • Master Slave • Master Slave VHDL Readings: 5.4, 5.9, 5.10, 4.4 October 21, 2015

  2. Overview Last Time • Sequential Circuits: Basic Nor Latch New • Sequential Circuits • Clocked SR flip flops • Master Slave SR • VHDL – two bit adder Arduino • Kits • http://www.arduino.cc/ ; http://arduino.cc/en/Guide/HomePage

  3. Register Bank - Mux – ALU - Decoder

  4. Clocked SR-Latch http://www.play-hookey.com/digital/ S1 R1 http://www.play-hookey.com/digital/sequential/clocked_rs_latch.html

  5. State Table SR clocked Flip-flop S1 R1

  6. Clocked SR-Latch Implementation S Q CP Qbar R 74LS00

  7. 74 LS10

  8. Building a JK from Chips 74LS00 74LS10 Vcc CP J K GND Q QN 74LS00

  9. 74LS49 – Seven segment display driver 74LS49/74LS47 • Inputs BCD digit (DCBA) (D is the MSB) • Outputs abcdefg – the seven segment driver lines • Schematic fig 5-45 • Note negation of inputs to or-gate • x’ + y’ = (x’ + y’)’ ’ = (x’’ . y’’)’ = (x . y)’ • It’s a NAND! • Truth table fig 5-21

  10. Hints on Circuits Hook up MUX BCD-to-7Seg  7Segment • Steps 1. Vcc,GND to all 2. put 330 ohm resistors in series with anode connections to LSD5061-11 (MAN71A) hooking them to Vcc 3. Test the 7-segment display hooking the individual cathodes to GND 4. Hook up outputs from 74LS47 to cathode inputs of 7-segment display 5. Hook the LampTest (pin 3) of the 74LS47 to GND, all segments should light up. 6. Hook up A1,A0 inputs of 74LS47 to Mux outputs, A2 and A3 should be GND 7. Test various values of select lines and mux inputs

  11. Arduino kits

  12. Getting Started with Arduino • Introduction: What Arduino is and why you'd want to use it. • Installation: Step-by-step instructions for setting up the Arduino software and connecting it to an Arduino Uno, Mega2560, Duemilanove, Mega, or Diecimila. • Windows • Mac OS X • Linux (on the playground wiki) • Environment: Description of the Arduino development environment and how to change the default language. • Libraries: Using and installing Arduino libraries. • Troubleshooting: Advice on what to do if things don't work. http://arduino.cc/en/Guide/HomePage

  13. Installing Arduino on Linux

  14. Teams? 10 People; 5 teams

  15. Seven segment Display

  16. 74LS47 – BCD to Seven Seg. Driver

  17. 74LS153 Dual 4 input MUX

  18. Hooking them Up 74LS153 74LS47 74LS153

  19. Transition Table for Clocked SR flip-flop

  20. J-K Flip Flop J K http://www.play-hookey.com/digital/jk_nand_flip-flop.html

  21. Transition Table for JK Flip Flop

  22. The D Flip Flop One input D D = 0  Q(t+1) = 0 D = 1  Q(t+1) = 1

  23. The T Flip Flop One input T T = 0  No change Q(t+1) = Q(t) T = 1  Complement Q(t+1) = Q(t)’

  24. Excitation Tables What inputs do we need to supply to the flip-flop do achieve the desired state transition?

  25. Excitation Tables: JK What inputs do we need to supply to the flip-flop do achieve the desired state transition?

  26. Excitation Tables: T What inputs do we need to supply to the flip-flop do achieve the desired state transition?

  27. Characteristic Equations Next state as a function of current state and inputs Q* = F(Q, S, R) // Q* = Q(t+1) Table 7-1 of text For MS S-R flip-flop Q*

  28. Characteristic Tables and Equations Characteristic Tables for a flip flop Describes next state Q* [or Q(t+1)] as function of inputs and in terms of current state Q [or Q(t)] Characteristic Equation specifies the next state as a function of current state and inputs (as an equation)

  29. Table 7-1 Characteristic Equations

  30. Excitation Tables What inputs need to be given to cause a specific state transition?

  31. Edge Triggered D Flip-Flops Positive edge triggered master slave QM D Q C D Q C D CLK Suppose D=0 for sometime then Qm = 0 and Q = 0 Then tracing this through setting D=1, CLK=1 The master changes when the clock CLK goes to 0 This means QM goes to 1, and then when the CLK goes to 1 Q becomes 1

  32. output depends onstate and input typically edge-triggered D flip-flops State-machine structure (Mealy)

  33. output dependson state only typically edge-triggered D flip-flops State-machine structure (Moore)

  34. TBird Lights State machine problem

  35. TBird Lights

  36. Bouncing Switches Connecting the “red” terminals below should change the output from 0 to 1. However, this change is not instantaneous; switches bounce • http://www.ganssle.com/debouncing.pdf

  37. Switch Bouncing When contact is made, it is not made instantaneously and smoothly. There is contact, it bounces open, contact again, open again … finally settling down after a few milliseconds (840 μsec = 840*10-6 sec) http://www.ganssle.com/debouncing.pdf

  38. Debouncing with a SR latch Fig 8-6 p 669

More Related