Digital Fundamentals Tenth Edition Floyd Chapter 9.

Slides:



Advertisements
Similar presentations
Digital Logic Chapter 5 Presented by Prof Tim Johnson
Advertisements

1 Sequential Circuits Dr. Pang. 2 Outline Introduction to sequential circuits Basic latch Gated SR latch and gated D latch D flip-flop, T flip-flop, JK.
Registers and Counters
Shift Registers and Shift Register Counters
EET 1131 Unit 12 Shift Registers
Sequential Circuit Introduction to Counter
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
Digital Fundamentals Floyd Chapter 9 Tenth Edition
Sequential Circuit  It is a type of logic circuit whose output depends not only on the present value of its input signals but on the past history of its.
Digital Fundamentals with PLD Programming Floyd Chapter 10
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Registers and Counters
Chapter 1_4 Part II Counters
Flip-Flop Applications Registers.  a register is a collection of flip-flops  basic function is to hold information  a shift register is a register.
Registers and Counters
1 Shift Registers. –Definitions –I/O Types: serial, parallel, combinations –Direction: left, right, bidirectional –Applications –VHDL implementations.
Figure 9–1 The flip-flop as a storage element.
EE24C Digital Electronics Projects
Sequential Circuits: Flip-Flops and Counter By Taweesak Reungpeerakul
Last Mod: March 2014  Paul R. Godin Shift Registers Registers 1.1.
Registers & Counters M. Önder Efe
Digital Design: Principles and Practices
P. 4.1 Digital Technology and Computer Fundamentals Chapter 4 Digital Components.
Introduction to Chapter 7
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Princess Sumaya Univ. Computer Engineering Dept. Chapter 6:
Counters By Taweesak Reungpeerakul
1 Lecture #17 EGR 277 – Digital Logic Reading Assignment: Chapter 6 in Digital Design, 3 rd Edition by Mano Timing Sequences So far we have designed circuits.
1 Registers & Counters Logic and Digital System Design - CS 303 Erkay Savaş Sabancı University.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
Sequential Logic Circuit
Sequential Logic Circuit
Sequential logic circuits
Last Mod: Jan 2015  Paul R. Godin Shift Registers : Technician Series Registers 1.1.
Counters and Registers
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
DIGITAL SYSTEMS TCE Shift Registers and Shift Register Counters Week 10 and Week 11 (Lecture 2 of 2)
DIGITAL COMPONENTS. MULTIPLEXERS A multiplexer is a combinational circuit that receives binary information from one of 2 n input data lines and directs.
Counters and registers Eng.Maha Alqubali. Registers Registers are groups of flip-flops, where each flip- flop is capable of storing one bit of information.
CSE 260 Digital Logic Design Registers, Memory BRAC University.
REGISTERS - Introduction to Registers Shift Registers Lecture 1 Gunjeet Kaur Dronacharya Group of Institutions.
Shift Register Counters
Synchronous Counters, ripple counter & other counters Lecture 2
EGR 2131 Unit 9 Registers and Counters
EET 1131 Unit 12 Shift Registers
Electronics Technology
Digital Fundamentals Abdul Hameed
Sequential Logic Counters and Registers
Counters and Registers
CHAPTER 9 Shift Registers
3.2 Shift Register Basic shift register function
Shift Registers.
Digital Fundamentals with PLD Programming Floyd Chapter 10
EET 1131 Unit 12 Shift Registers
COE 202: Digital Logic Design Sequential Circuits Part 4
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
EGR 2131 Unit 10 Registers and Counters
Principles & Applications
CS M51A/EE M16 Winter’05 Section 1 Logic Design of Digital Systems Lecture 16 March 14 W’05 Yutao He 4532B Boelter Hall
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
EGR 2131 Unit 11 Registers and Counters
Week 11 Flip flop & Latches.
Shift Registers Dr. Rebhi S. Baraka
Presentation transcript:

Digital Fundamentals Tenth Edition Floyd Chapter 9

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Register: Storage Capacity Each stage (flip-flop) in a shift register represents one bit of storage capacity; therefore, the number of stages in a register determines its storage capacity.

Register: Shift Capability permits the movement of data from stage to stage within the register or into or out of the register upon application of clock pulses Basic Shift Register Operations Data in Data in Data out Data out Data in Data out Serial in/shift right/serial out Serial in/shift left/serial out Parallel in/serial out Data in Data in Data out Data out Serial in/parallel out Parallel in/parallel out Rotate right Rotate left

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Serial-in/Serial out Shift Register Shift registers are available in IC form or can be constructed from discrete flip-flops Each clock pulse will move an input bit to the next flip-flop. 1 1 1 1 1 1 CLK CLK CLK CLK CLK

Serial-in/Serial out Shift Register

Serial-in/Serial out Shift Register

Serial-in/Parallel out Shift Register

A Basic Application of SISO -> to Form SIPO For example, assume the binary number 1011 is loaded sequentially, one bit at each clock pulse. After 4 clock pulses, the data is available at the parallel output. CLK CLK CLK CLK

The 74HC164A Shift Register The 74HC164A is a CMOS 8-bit serial in/parallel out shift register. CLR CLK A Serial inputs B Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7

Waveforms for the 74HC164A B acts as an active HIGH enable for the data on A. CLR A Serial inputs B CLK Q0 Q1 Q2 Q3 Outputs Q4 Q5 Q6 Q7 Clear Clear

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Parallel in/Serial out Shift Register Shift registers can be used to convert parallel data to serial form. Load: G1-G4; Shift: G5-G7 D0 D1 D2 D3 SHIFT/LOAD Serial data out Q0 Q1 Q2 Q3 CLK

Parallel in/Serial out Shift Register Shift registers can be used to convert parallel data to serial form. Load: G1-G4; Shift: G5-G7

Parallel in/ Parallel out Shift Register Shift registers can be used to convert parallel data to serial form. Load: G1-G4; Shift: G5-G7

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Bidirectional Shift Register Bidirectional shift registers can shift the data in either direction using a RIGHT/LEFT input. The logic analyzer simulation waveform CLK RIGHT/LEFT Shift left Shift right Serial data in Q0 Q1 Q2 Q3

Bidirectional Shift Register Bidirectional shift registers can shift the data in either direction using a RIGHT/LEFT input.

Bidirectional Shift Register When the R/L control input is HIGH, G1-G4 are enabled When the R/L control input is LOW, G5-G8 are enabled

Universal Shift Register has both serial and parallel input and output capability. - Parallel loading: HIGH to the S0 and S1; - Shift right: when S0 is HIGH and S1 is LOW. - Shift left: when S1 is HIGH and S0 is LOW. D0 D1 D2 D3 CLR S0 Mode Control S1 74HC194 SL SER: Shift left serial input SR SER: Shift right serial input SR SER SL SER CLK Q0 Q1 Q2 Q3

Universal Shift Register

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Shift Register Counters Shift registers can form useful counters by recirculating a pattern of 0’s and 1’s. Two important shift register counters are the Johnson counter and the ring counter.

Johnson Counter The Johnson counter is useful when you need a sequence that changes by only one bit at a time but it has a limited number of states (2n, where n = number of stages). The first five counts for a 4-bit Johnson counter that is initially cleared are: CLK Q0 Q1 Q2 Q3 1 2 3 4 5 6 7 0 0 0 0 1 0 0 0 1 1 0 0 1 1 1 0 1 1 1 1 0 1 1 1 0 0 1 1 0 0 0 1

Shift Register Counters The Johnson counter can be made with a series of D flip-flops … or with a series of J-K flip flops. Here Q3 and Q3 are fed back to the J and K inputs with a “twist”.

Johnson Counter Redrawing the same Johnson counter (without the clock shown) illustrates why it is sometimes called as a “twisted-ring” counter. “twist”

Ring Counter utilizes one flip-flop for each state in its sequence. It has the advantage that decoding gates are not required

Ring Counter The ring counter can also be implemented with either D flip-flops or J-K flip-flops. 4-bit ring counter constructed from D flip-flops. implemented with J-K flip flops.

Ring Counter Redrawing the Ring counter (without the clock shown) shows why it is a “ring”. Disadvantage: - must be preloaded with the desired pattern (usually a single 0 or 1) - has even fewer states than a Johnson counter (n, where n = number of flip-flops. Advantage: being self-decoding with a unique output for each state.

Ring Counter A common pattern for a ring counter is to load it with a single 1 or a single 0. The waveforms shown here are for an 8-bit ring counter with a single 1.

Outline 9-1 Basic Shift Register Operations 9-2 Serial In/Serial Out Shift Registers 9-3 Parallel In/Serial Out Shift Registers 9-4 Bidirectional Shift Registers 9-5 Shift Register Counters 9-6 Shift Register Applications

Shift Register Applications - Time Delay - Serial-to-Parallel Data Converter - Universal Asynchronous Receiver Transmitter - Keyboard Encoder

Example Solution Shift Register Applications – Time Delay can be used to delay a digital signal by a predetermined amount. An 8-bit serial in/serial out shift register has a 40 MHz clock. What is the total delay through the register? Example Solution The delay for each clock is 1/40 MHz = 25 ns 25 ns The total delay is 8 x 25 ns = 200 ns = 200 ns

Key Terms Register Stage Shift Load Bidirectional One or more flip-flops used to store and shift data. One storage element in a register. To move binary data from stage to stage within a shift register or other storage device or to move binary data into or out of the device. To enter data in a shift register. Having two directions. In a bidirectional shift register, the stored data can be shifted right or left.

Quiz 1. The shift register that would be used to delay serial data by 4 clock periods is a. c. b. d.

Quiz 2. The circuit shown is a a. serial-in/serial-out shift register b. serial-in/parallel-out shift register c. parallel-in/serial-out shift register d. parallel-in/parallel-out shift register

Quiz 3. If the SHIFT/LOAD line is HIGH, data a. is loaded from D0, D1, D2 and D3 immediately b. is loaded from D0, D1, D2 and D3 on the next CLK c. shifted from left to right on the next CLK d. shifted from right to left on the next CLK

Quiz 4. A 4-bit parallel-in/parallel-out shift register will store data for a. 1 clock period b. 2 clock periods c. 3 clock periods d. 4 clock periods

Quiz 5. The 74HC164 (shown) has two serial inputs. If data is placed on the A input, the B input a. could serve as an active LOW enable b. could serve as an active HIGH enable c. should be connected to ground d. should be left open CLR CLK A Serial inputs B Q0 Q1 Q2 Q3 Q4 Q5 Q6 Q7

Quiz 6. An advantage of a ring counter over a Johnson counter is that the ring counter a. has more possible states for a given number of flip-flops b. is cleared after each cycle c. allows only one bit to change at a time d. is self-decoding

Quiz 7. A possible sequence for a 4-bit ring counter is d. … 1000, 0100, 0010 …

Quiz 8. The circuit shown is a a. serial-in/parallel-out shift register b. serial-in/serial-out shift register c. ring counter d. Johnson counter

Quiz 9. Assume serial data is applied to the 8-bit shift register shown. The clock frequency is 20 MHz. The first data bit will show up at the output in a. 50 ns b. 200 ns c. 400 ns d. 800 ns

Quiz Answers: 1. a 2. c 3. c 4. a 5. b 6. d 7. d 8. d 9. c