1 / 49

Digital Technology and Computer Fundamentals

Digital Technology and Computer Fundamentals. Chapter 3 Sequential Logic Circuits. Objectives. At the end of this chapter, you should be able to: define what is a sequential circuit; draw the circuit diagram of an SR flip-flop and explain its function;

stesha
Download Presentation

Digital Technology and Computer Fundamentals

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. Digital Technology and Computer Fundamentals Chapter 3 Sequential Logic Circuits

  2. Objectives • At the end of this chapter, you should be able to: • define what is a sequential circuit; • draw the circuit diagram of an SR flip-flop and explain its function; • draw the circuit diagram of a JK flip-flop and explain its function; • explain the functions of D-type and T-type flip-flops;

  3. Objectives (Cont’d) • differentiate the functions of triggering control; • identify the representations for different types of triggering in a circuit symbol; • explain the functions of direct inputs;

  4. Objectives (Cont’d) • explain the operations of shift register circuits; and • explain the operations of the asynchronous and synchronous counter circuits.

  5. References • Thomas C. Bartee, "Digital Computer Fundamentals," sixth edition, McGraw-Hill Publishing Company. • Richard S. Sandige, "Modern Digital Design," McGraw-Hill Publishing Company. • Theodore F. Bogart Jr., "Introduction to Digital Circuits,"” McGraw-Hill Publishing Company.

  6. Introduction • Those whose outputs depend on the state of inputs and the previous state of the outputs. • Able to remember a logic value. • Several types of sequential logic circuits. • flip-flops • counters • shift registers.

  7. Flip Flop • A bi-stable element. • Two stable states, 1 or 0. • Able to store a digital value. • Depends on the input and the previous value stored. • Basic elements of a memory device in a digital computer. • The outputs of Q and are complemented to each other.

  8. Flip Flop (Cont’d) • To understand, one must be familiar with the functions of logic gates. • NAND gate: Output is 1 whenever there is a 0 at the inputs. • NOR gate: Output is 0 whenever there is a 1 at the inputs.

  9. Flip Flop (Cont’d) • Propagation delay of the logic gates. • Outputs of the logic gates take time to response to input changes. • Outputs change in response to the change of inputs and The previous change of the outputs. • Time required to settle to a stable state, i.e. the final values of outputs.

  10. Flip Flop (Cont’d) • An initial value, 1 or 0, must be assigned to the previous outputs for deducing the final output values. • We usually use the symbol Qn to denote the initial (or previous) value of the output and Qn+1 to denote the new value of the stable output.

  11. S-R (Set-Reset) Flip Flop • S-R flip-flop is the simplest one. • Can be made by any logic gates.

  12. S-R Flip Flop (Cont’d) • Case 1: S = R = 0. • Assume Q = 0 and = 1. • Substitute values into eq. 3.1 and 3.2 • New output values: Q = 0 and = 1. • If initially, Q = 1 and = 0 • New outputs are: Q = 1 and -Q = 0. • Conclusion: outputs, Q and -Q, are unchanged if both inputs are 0.

  13. S-R Flip Flop (Cont’d) • Case 2: S = 0, R = 1. • Assume Q = 0 and -Q = 1. • Substitute values into eq. 3.1 and 3.2, • New output values: Q = 0 and -Q = 1. • If Q = 1 and -Q = 0 are initial state • New outputs: Q = 0 and -Q = 0. • Not a stable state. • Subsequent changes are illustrated in timing table.

  14. S-R Flip Flop (Cont’d) • Time sequence starts from left to right. • Adjacent columns represent a time interval, the propagation delay. • Output values at time tn determined by values of the gate inputs at time tn-1.

  15. S-R Flip Flop (Cont’d) • The outputs Q and -Q settle at time t3. • Their values are 0 and 1 respectively. • Concluion: The output Q is reset to 0 when the S is 0 and R is 1.

  16. S-R Flip Flop (Cont’d) • Case 3: S = 1; R = 0. • If initially, Q = 0 and -Q = 1. • New output values are: Q = 0 and -Q = 0. • Analysis with the timing table required.

  17. S-R Flip Flop (Cont’d) • Values of the Q and -Q settle at time t3 • Values are 1 and 0 respectively. • If Q = 1 and -Q = 0 are the initial state • New outputs are same: Q = 1 and -Q = 0. • Conclusion: The output Q is set to 1 when the S is 1 and R is 0.

  18. S-R Flip Flop (Cont’d) • Case 4: S = 1; R = 1. • The outputs will be all 0 no matter what their initial values are. • If then, the inputs are all reset to 0: • race happens between the logic gates. • Which output is 1 cannot be determined. • Conclusion: this case should never happen in a practical circuit.

  19. S-R Flip Flop (Cont’d) • Truth table of the S-R flip-flops • Different circuits can be found from the same truth table. • For example: using NAND gates as in lecture notes.

  20. J-K Flip Flop • Disadvantage of the S-R flip-flop: only three cases of inputs are used. • The J-K flip-flop is designed to overcome such limitation.

  21. J-K Flip Flop (Cont’d)

  22. J-K Flip Flop (Cont’d)

  23. J-K Flip Flop (Cont’d) • Case 1: J = 0; K = 0. • Outputs of the gates G1 and G2, will be 1 regardless the values of Q and • Conclusion: Q and will remain unchanged.

  24. J-K Flip Flop (Cont’d) • Case 2: J = 0; K = 1. • Initially, Q is 0 and -Q is 1 • Substituting all the values into the Eq.3.3 to Eq.3.6 • The final values of G1, G2, Q and -Q are 1, 1, 0, and 1 respectively.

  25. J-K Flip Flop (Cont’d) • Initially, Q is 1 and -Q is 0 • Analysis with the timing table required.

  26. J-K Flip Flop (Cont’d) • Conclusion: Outputs Q and -Q will be 0 and 1 respectively regardless their initial values if the inputs J and K are 0 and 1 respectively.

  27. J-K Flip Flop (Cont’d) • Case 3: J = 1; K = 0. • Initially, Q is 0 and -Q is 1 • Substituting all the values into the Eq.3.3 to Eq.3.6 • Analysis with timing table

  28. J-K Flip Flop (Cont’d) • The final values of G1, G2, Q and are 1, 1, 1, and 0 respectively.

  29. J-K Flip Flop (Cont’d) • Initially, Q is 1 and -Q is 0 • The stable values of G1, G2, Q and -Q are 1, 1, 1, and 0 respectively. • Conclusion: Outputs Q and -Q will be 1 and 0 respectively regardless their initial values if the inputs J and K are 1 and 0 respectively.

  30. J-K Flip Flop (Cont’d) • Case 4: J = 1; K = 1. • Analysis of this case must make use of the timing table.

  31. J-K Flip Flop (Cont’d) • Setting both J and K inputs at 1 indefinitely will make the outputs change indefinitely. • The real effect of such input change is to make the output change from 0 to 1 or from 1 to 0.

  32. J-K Flip Flop (Cont’d) • Truth table of J-K flip-flops.

  33. Symbols of the S-R and J-K flip-flops • Circuit symbols of basic flip-flops.

  34. D-type Flip-Flop • Truth table and circuit symbol

  35. T-type Flip-Flop • Truth table and circuit symbol

  36. Triggering of flip-flop • With a timing diagram, we can forecast the behavior of a flip-flop

  37. Triggering of flip-flop (Cont’d) • A flip-flop is triggered by the changes at its inputs. • Such triggering has immediate effect on the output. • Output will be out of control if unwanted situation happens • Need certain control on this triggering. • Use a clocksignal.

  38. Clock Signal

  39. Triggering with Clock • Level-triggered (clocked) • A flip-flop responses to the input changes when the clock is at logical 1 is called a positive clocked (positive level-triggered) flip-flop. • A negative clocked (negative level-triggered) flip-flop responses to the input changes when the clock is at logical 0.

  40. Triggering with Clock (Cont’d) • Edge-triggered • A flip-flop responses to the input changes when the clock changes from logical 0 to logical 1 is called a positive edge-triggered flip-flop. • A negative edge-triggered flip-flop responses to the input changes when the clock changes from logical 1 to logical 0.

  41. Positive clocked S-R Flip-Flop • Truth table and circuit symbol

  42. An Example • Waveform of a positive clocked SR FF

  43. Negative clocked D-type Flip-Flop • Truth table and circuit symbol

  44. Positive edge-triggered T-type Flip-Flop • Truth table and circuit symbol

  45. Negative edge-triggered J-K Flip-Flop • Truth table and circuit symbol

  46. Another Example • Waveform of a negative clocked JKFF

  47. More Example • Waveform of a negative edge-triggered JK FF

  48. Direct inputs • Direct inputs allow the users to assign the state of a flip-flop directly without going through the normal inputs. • An example: a negative edge-triggered J-K flip-flop with direct preset and clear inputs. • Q will be set to logical 1 if PS, preset, is 0. If Clr, clear, is 0, Q output will be reset to 0, i.e. Low activated.

More Related