Top Banner
DIGITAL ELECTRONICS CHAPTER 4 DEE 204
64

Digital e chap 4

May 31, 2015

Download

Engineering

MD Azizul Hoque

digital design for diploma students
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Digital e   chap 4

DIGITAL ELECTRONICSCHAPTER 4

DEE 204

Page 2: Digital e   chap 4

DIGITAL ELECTRONICSFunction of sequential logic

Sequential logic.Latches: gated SR and D latchEdge-triggered S-R latch.Edge-trigged D-type latches.Toggle flip-flop.Asynchronous counters, registers.State machines. 

Page 3: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICSequential logic

- Many applications require digital outputs to be generated in accordance with the sequence of input signals reception

- Require outputs to be generated dependent on past history of inputs and not the present input alone

- Information stored in memory elements define present state of sequential circuit

Page 4: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Sequential logic

Page 5: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Page 6: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Page 7: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICLatches:

- a type of temporary storage device that has two stable states- similar to flip-flops that can reside in either of the two states using feedback arrangements

S-R Latch: a type of bistable device or multivibrator, either active-HIGH or active-LOW

Page 8: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: - Can be constructed from either two

NAND (active-LOW) gates or two NOR (active-HIGH) gates

Page 9: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: - For SR latch using NOR gates

Page 10: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: - For SR latch using NOR gates

Page 11: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: - For SR latch using NAND gates

Page 12: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: - For SR latch using NAND gates

Page 13: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICS-R Latch: Truth table

NOR gate latchNAND gate latch

Page 14: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

• Example:For a given waveform, sketch the output waveform of an active-LOW SR latch.

S

R

Page 15: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

• Solution:

Page 16: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICLatches: gated S-R- Requires an enable input, EN- S and R inputs control the state to

which the latch will go when a HIGH is fed to EN

- Latch will not change until EN is HIGH, but as it remains HIGH, output is controlled by S and R inputs

- The invalid state is when both S and R are simultaneously HIGH

Page 17: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Latches: gated S-R

Page 18: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICLatches: gated S-R truth table

Page 19: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICLatches: gated S-RExample:Determine the output waveform of a gated SR latch

for the given inputs

Page 20: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICLatches: gated S-RSolution:

Page 21: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

• Gated D latch- has only one input apart from EN called D (data) input- when D input is HIGH and EN input is HIGH the latch will set- when D input is LOW and EN is HIGH the latch will reset

Page 22: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC• Gated D latch

Page 23: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC• Gated D latch

Example:Determine the output waveform of a gated D latch for the given input

Page 24: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC• Gated D latch

Solution:

Page 25: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge triggered latches- Known as flip-flops- Synchronous bistable multivibrators- Output changes state only at a specified point

on the triggering input called the clock (CLK)- CLK acts as C, control input which

synchronizes the changes in the input according to the clock

Page 26: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered latches (flip-flop)- Changes state either at the positive

edge or negative edge of the clock pulse

- Positive edge-triggered if no bubble at C input, negative edge-triggered if bubble at C input

- The logic symbol shows clock input (C) with small triangle called dynamic input indicator

Page 27: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-triggered S-R latches (S-R flip-flop)- S and R inputs are called synchronous inputs,

data transferred on the triggering edge of the clock pulse

- When S is HIGH and R is LOW, at the triggering edge of the clock pulse the Q output goes HIGH and flip-flop is set

- When S is LOW and R is HIGH, at the triggering edge of the clock pulse the Q output goes LOW and flip-flop is reset

Page 28: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)- When both S and R are LOW, the output

does not change- When both S and R are HIGH, an invalid

condition existsState change only occurs on the triggering

edge of a clock pulse, either positive (rising) or negative (falling) edge

Page 29: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)

Page 30: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)

Page 31: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)

Logic circuit of positive triggered edge SR flip-flop Truth table

Page 32: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)- output waveforms for a positive edge

triggered SR flip-flop

Page 33: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-triggered S-R latches (S-R flip-flop)

- operation

Page 34: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop) – output waveforms of a negative edge triggered SR flip-flop

Page 35: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)Example:Draw output waveforms of a positive

edge triggered SR flip-flop

Page 36: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-triggered S-R latches (S-R flip-flop)Solution:

Page 37: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-trigged D-type latches (D flip-flop)- Used when a single data bit (1 or 0) is to

be stored- Has only one input, D input besides the

clock- If the D input is HIGH, at clock pulse the

flip-flop is set, D input is stored on positive edge of clock pulse

- If the D input is LOW, at clock pulse the flip-flop is reset, D input is stored on leading edge of clock pulse

Page 38: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-trigged D-type latches (D flip-flop)- Is actually a SR flip-flop connected

with an inverter- Logic circuit

Page 39: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-trigged D-type latches (D flip-flop)- Could be either positive or negative

edge triggered- Positive edge triggered: symbol and

truth table

Page 40: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

• Positive edge triggered: output waveforms

Page 41: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-trigged D-type latches (D flip-flop)- Negative edge triggered: symbol and

truth table

Page 42: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-trigged D-type latches (D flip-flop)- Negative edge triggered: output

waveforms

Page 43: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICEdge-Triggered JK Flip-Flop• Versatile and widely

used• Identical to SR flip-flop

functions except it does not have the invalid state

• Made up of 4 NAND gates quite similar to arrangement of SR latches

Page 44: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Edge-Triggered JK Flip-Flop: truth-tableINPUTS OUTPUTS

J K CLK Q COMMENTS

0 0 ↑ Q0 No change

0 1 ↑ 0 1 RESET

1 0 ↑ 1 0 SET

1 1 ↑ Q0 Toggle

Q

0Q

0Q

Page 45: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

• Example: waveform

Page 46: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICToggle flip-flop- Also known as T flip-flop - Modification of JK flip-flop: obtained

from a JK flip-flop, connecting both inputs J and K together

- When T = 0, both AND gates disabled, no change in output

- When T = 1, output toggles

Page 47: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICToggle flip-flop: logic circuit

Page 48: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICToggle flip-flop: symbol and truth table

Page 49: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICToggle flip-flop: output waveformsExample:Determine the output waveform of a toggle

flip-flop for the given input waveform assuming initial Q state is reset

Page 50: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICToggle flip-flop: output waveformsSolution:

Page 51: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters- Counters: measure time interval between

two unknown time instants- Flip-flops not to make state changes

simultaneously (at the same time)- Do not have the common clock pulse

Page 52: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters- Logic symbol of asynchronous 2-bit

counters

Page 53: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters: waveforms of

2-bit counter

Page 54: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters- Logic symbol of asynchronous 3-bit

counters

Page 55: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters: waveforms of

3-bit counter

Page 56: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters- Logic symbol of asynchronous 4-bit

counters

Page 57: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters: waveforms of 4-bit

counter

Page 58: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Asynchronous counters- Logic symbol of asynchronous 3-bit

up/down counters

Page 59: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Asynchronous counters- Logic symbol of asynchronous 3-bit

up/down counters: output waveform

Page 60: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGIC

Asynchronous counters

- Logic symbol of asynchronous 3-bit up/down counters: output waveform

Page 61: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous counters: logic diagram

of decade counter

Page 62: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICAsynchronous registersRegister:- In the MSI sequential logic circuit category- A group of cascaded flip-flops for temporary

binary information storing - Does not have a common clock pulse- Usually available in integrated circuits or

microprocessors- Used for temporary storage of data to be fed

from a digital circuit to another digital circuit

Page 63: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICState machines- A model that simplifies a whole large

digital system- Digital system is viewed as one that

moves in discrete steps from one state to another

- Each transition is determined by the current state it is in

Page 64: Digital e   chap 4

FUNCTION OF SEQUENTIAL LOGICState machines