1 of 27

Sequential Logic

TOPIC 3

2 of 27

Specific Objectives

  • construct the SR flip-flop by using NOR gate and NAND gate.
  • Draw the symbol and create a truth table for SR flip-flop.
  • Draw the timing diagram for the SR flip-flop and sketch the output for this flip-flop.
  • Draw the symbol; create a truth table and timing diagram for the clocked SR flip-flop.
  • Draw clocked SR flip-flop with Preset and Clear control input.
  • Draw the symbol, truth table and timing diagram for clocked SR flip-flop.
  • Draw the symbol, truth table and timing diagram for JK, T and D flip-flop.
  • Construct a T and a D flip-flop using a JK flip-flop.
  • Draw the symbol, truth table and timing diagram for MASTER/SLAVE JK flip-flop.
  • State the applications of JK flip-flop, T flip-flop and D flip-flop

​

3 of 27

INTRODUCTION

  • Sequential logic is a form of binary circuit design that employs one or more inputs and one or more outputs, whose states are related by defined rules that depend, in part, on previous states

​

  • A common example of a circuit employing sequential logic is the flip-flop

​

  • There are several different kinds of flip-flop circuits, with designators such as D, T, J-K, and R-S. Flip-flop circuits are interconnected to form the logic gates that comprise digital integrated circuits (ICs) such as memory chips and microprocessors.

4 of 27

Flip-Flop Applications

  • Parallel Data Storage
  • Frequency Division
  • Counting

5 of 27

Parallel Data Storage

A common requirement in digital systems is to store several bits of data from parallel lines simultaneously in a group of flip-flops.

6 of 27

Frequency Division

2n: n is number of flip-flops. Example: 2 flip-flop will divided frequency by 4 (22)

7 of 27

Example: Develop the fout waveform for the circuit below when the 8 kHz square wave input is applied to the clock input of flip-flop A

8 of 27

Counting

9 of 27

The 555 Timer

  • Monostable (one-shot) operation
  • Astable operation

​

​

10 of 27

  • Monostable (one-shot) operation

​

​

tw=1.1R1C1

11 of 27

  • Astable operation

​

​

12 of 27

Basic Flip-flop circuit

  • A flip-flop circuit can be constructed from two NAND gates or NOR gates

​

13 of 27

Truth table for NAND gate SR latch

14 of 27

TRY THIS!�Draw the output timing for NOR gates SR

15 of 27

TRY THIS!�Draw the output timing for NAND gates SR

16 of 27

Edge-Triggered Flip-Flops

  • Edge-triggered S-R flip-flop
  • Edge-triggered D flip-flop
  • Edge-triggered J-K flip-flop

17 of 27

Edge-Triggered Flip-Flop Logic Symbols (Top: Positive Edge-Triggered; Bottom: Negative Edge-Triggered).

18 of 27

Clocked SR Flip-Flop

  • The clocked SR flip-flop shown in Figure 1.5 consists of a basic NOR flip-flop and two AND gates. The outputs of the two AND gates remain at logic ‘0’ as long as the clock pulse (or CP) is logic ‘0’, regardless of the S and R input values. When the clock pulse goes to logic ‘1’, information from the S and R inputs passes through to the basic flip-flop. With both S= 1 and R= 1, the occurrence of a clock pulse causes both outputs to momentarily go to logic ‘0’.

​

​

19 of 27

The Edge-Triggered S-R Flip-Flop

Operation

The S and R inputs of the S-R flip-flop are called synchronous input because data on these inputs are transferred to the flip-flop’s output only on the triggering edge of the clock pulse.

20 of 27

Operation of a positive edge-triggered S-R flip-flop

Example

21 of 27

Example:

Determine the Q and /Q output waveforms of the flip-flop (Assume is initially RESET)

22 of 27

Exercise:

Determine the Q and /Q output waveforms of the flip-flop (Assume is initially RESET) and it is a negative edge-triggered device

23 of 27

24 of 27

25 of 27

Clocked SR Flip-flop with ‘Preset’ and ‘Clear’ Input Control

Most integrated circuit flip-flops also have asynchronous inputs. These are inputs that affect the state of the flip-flop independent of the clock. They are normally labeled preset (PRE) and clear (CLR). An active level on the preset input will SET the flip-flop, and an active level on the clear input will RESET it.

IMPORTANT: WHEN PRESET IS HIGH AND CLEAR IS LOW, OUTPUT Q=0

WHEN PRESET IS LOW AND CLEAR IS HIGH, OUTPUT Q=1

Figure 1.6: Logic symbol of the SR flip-flop with Preset and Clear input control

26 of 27

Figure 1.7: Timing diagram of the SR flip-flop

27 of 27

EXCERSICES

  • Design the :
  • 1. NOR gate SR latch
  • 2. NAND gate SR latch
  • 3. Clocked SR Flip-flop ‘Preset and Clear Input Control’
  • Must include:
  • i. Diagram
  • ii. Truth table
  • Iii.Timing Diagram