DIGITAL SYSTEMS TCE1111 1 Shift Registers and Shift Register Counters Week 10 and Week 11 (Lecture 2 of 2)

Slides:



Advertisements
Similar presentations
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.
Advertisements

Dr. ClincyLecture1 Appendix A – Part 2: Logic Circuits Current State or output of the device is affected by the previous states Circuit Flip Flops New.
1 Review: Counters and Registers CS 231 Review October 26, 2007 By Joshua Smith Please note the NOTES in the PPT file for help with the examples.
MOHD. YAMANI IDRIS/ NOORZAILY MOHAMED NOOR 1 Sequential Circuit: Register Introduction N-bit register contains n flip-flop and several logic gates and.
Shift Registers and Shift Register Counters
EET 1131 Unit 12 Shift Registers
Digital Logic Design Lecture 24. Announcements Homework 8 due today Exam 3 on Tuesday, 11/25. – Topics for exam are up on the course webpage.
Counters and Registers Wen-Hung Liao, Ph.D.. Objectives Understand several types of schemes used to decode different types of counters. Anticipate and.
Sequential Circuit Introduction to Counter
C HAPTER S IX R EGISTERS AND C OUNTERS 1. A clocked sequential circuit consists of a group of flip-flops and combinational gates connected to form a feedback.
Introduction Flip-flops are synchronous bistable devices. The term synchronous means the output changes state only when the clock input is triggered. That.
A.Abhari CPS2131 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers:
What is shift register? A shift register is a digital memory circuit found in calculators, computers, and data-processing systems. Bits (binary digits)
REGISTER A Register is a group of binary storage cells suitable for holding binary information. A group of flip-flops constitutes a register, since each.
Sequential logic and systems
Registers and Counters
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.
Electronics Technology
Counters.
SEQUENTIAL CIRCUITS USING TTL 74XX ICS
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Registers and Counters
Chapter 1_4 Part II Counters
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
EE345: Introduction to Microcontrollers Register and Counters Prof. Ahmad Abu-El-Haija.
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
1 Registers and Counters A register consists of a group of flip-flops and gates that affect their transition. An n-bit register consists of n-bit flip-flops.
Digital Design: Principles and Practices
Introduction to Chapter 7
Digital Design Lectures 11 & 12 Shift Registers and Counters.
7-6 단일 레지스터에서 Microoperation Multiplexer-Based Transfer  Register 가 서로 다른 시간에 둘 이상의 source 에서 data 를 받을 경우 If (K1=1) then (R0 ←R1) else if (K2=1) then.
ENG241 Digital Design Week #8 Registers and Counters.
Registers and Counters Chapter 6. Digital Circuits 2 Clocked sequential circuits a group of flip-flops and combinational gates connected to form a feedback.
Sequential Logic Circuit
Sequential Logic Circuit
Sequential logic circuits
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Digital Electronics Electronics Technology Landon Johnson Shift Registers.
Digital Fundamentals Tenth Edition Floyd Chapter 9.
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.
CHAPTER 14 Digital Systems. Figure 14.1 RS flip-flop symbol and truth table Figure
1 Registers A register is a group of n flip-flops each of them capable of storing one bit of information There are two types of registers: parallel and.
CSE 260 Digital Logic Design Registers, Memory BRAC University.
REGISTERS - Introduction to Registers Shift Registers Lecture 1 Gunjeet Kaur Dronacharya Group of Institutions.
Dr. Clincy Professor of CS
EET 1131 Unit 12 Shift Registers
Registers and Counters
Electronics Technology
Digital Fundamentals Abdul Hameed
Parallel In/Serial Out Shift Registers
Sequential Logic Counters and Registers
CHAPTER 9 Shift Registers
3.2 Shift Register Basic shift register function
Registers and Counters Register : A Group of Flip-Flops. N-Bit Register has N flip-flops. Each flip-flop stores 1-Bit Information. So N-Bit Register Stores.
EET 1131 Unit 12 Shift Registers
Digital Logic & Design Dr. Waseem Ikram Lecture No. 34.
SYEN 3330 Digital Systems Chapter 7 – Part 1 SYEN 3330 Digital Systems.
Parallel In/Serial Out Shift Registers
Switching Theory and Logic Design Chapter 5:
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
14 Digital Systems.
Registers and Counters
Week 11 Flip flop & Latches.
Shift Registers Dr. Rebhi S. Baraka
Digital Electronics and Logic Design
Presentation transcript:

DIGITAL SYSTEMS TCE Shift Registers and Shift Register Counters Week 10 and Week 11 (Lecture 2 of 2)

DIGITAL SYSTEMS TCE Shift Register is one of the most widely used functional device in Digital Systems. The simple pocket calculator illustrates the shift register’s characteristics. How Shift Register Works ? If a 4-bit shift Register receives 4-bits of parallel data and shift them to the right four positions into some other device STEP-1 1 Q D 1 Q D 0 Q D 0 Q D 0 CLOCK 0 XXXX Parallel load a 1000: Serial receiving device CpCp CpCp CpCp CpCp CLOCK INPUT X=Undetermined State Shift Register

DIGITAL SYSTEMS TCE STEP -2 STEP -3 1 Q D 0 Q D 1 Q D 0 Q D 0 CLOCK 0 XXX CpCp CpCp CpCp CpCp Apply pulse 1: 1 1 Q D 0 Q D 0 Q D 1 Q D 0 CLOCK 0 XX CpCp CpCp CpCp CpCp Apply pulse 2: 2 Shift Register

DIGITAL SYSTEMS TCE STEP - 4 STEP -5 1 Q D 0 Q D 0 Q D 0 Q D 1 CLOCK 0 X CpCp CpCp CpCp CpCp Apply pulse 3: 3 1 Q D 0 Q D 0 Q D 0 Q D 0 CLOCK CpCp CpCp CpCp CpCp Apply pulse 4: 4 Shift Register

DIGITAL SYSTEMS TCE One method of identifying Shift Registers is how data is loaded into and read from the storage unit. There are Four Categories of Shift Registers. Shift Register

DIGITAL SYSTEMS TCE Serial in/serial out shift register. Serial entry of data into a shift register. A 4-bit device implemented with D flip-flop. Shift Register

DIGITAL SYSTEMS TCE Four bits (1010) being entered serially into the register. The register is initially clear. The 0 is put onto the data input line, when the 1 st. Clock pulse, FF0 is reset, thus storing 0. Next the 2 nd. Bit 1, is applied to the data input, making D=1 for FF0 and D=0 for FF1, when 2 nd. Clock pulse occurs, the 1 on the data input is shifted into FF0, and the 0 was in FF0 is shifted into FF1. The 3 rd. Bit, a 0 is put onto the data input line, and a clock pulse is applied, the 0 is entered into FF0, the 1 stored in FF0 is shifted into FF1, and the 0 stored in FF1 is shifted into FF2. The last bit, a 1, is now applied to the data input and a clock pulse is applied. This time the 1 is entered into FF0, the 0 stored in FF0 is shifted into FF1, the 1 stored in FF1 is shifted into FF2, and the 0 stored in FF2 is shifted into FF3. This complete the serial entry of four bits into the shift register. Shift Register

DIGITAL SYSTEMS TCE Four bits (1010) being entered serially into the register.

DIGITAL SYSTEMS TCE Assumed that the registers is initially cleared. Show the state of the 5-bit register for the specified data input and clock waveforms. Shift Register

DIGITAL SYSTEMS TCE A serial in/parallel out shift register. Figure shows a 4-bit serial in/parallel out shift register and its logic block symbol. Shift Register

DIGITAL SYSTEMS TCE Show the of the 4-bit register for the data input and clock waveforms. The register initially contains all 1’s. The register contains 0110 after 4 clock pulses. Shift Register

DIGITAL SYSTEMS TCE A 4-bit parallel in/serial out shift register. Shift Register

DIGITAL SYSTEMS TCE A 4-bit parallel in/serial out shift register. There are four data-input lines, D 0, D 1, D 2, D 3 and a SHIFT/LOAD input, which allows four bits of data to load in parallel into the register. When SHIFT/LOAD is LOW, gates G 1 through G 3 are enabled, allowing each data bit to be applied to the D input of its respective flip-flop. When a clock is applied, the flip-flops with D=1 will set and those with D=0 will reset, thereby storing all four bits simultaneously. When SHIFT/LOAD is HIGH, gates G 1 through G 3 are disabled and G 4 through G 6 are enabled, allowing the data bits to shift right from one stage to the next. The OR gates allow either the normal shifting operation or parallel data-entry operation, depending on which AND gates are enabled by the level on the SHIFT/LOAD input. Shift Register

DIGITAL SYSTEMS TCE Show the data-output waveform for a 4-bit register with the parallel input data and the clock and SHIFT/LOAD waveforms given. Shift Register

DIGITAL SYSTEMS TCE A parallel in/parallel out register. Shift Register

DIGITAL SYSTEMS TCE The 74HC195 can be used for parallel in/parallel out operation. It also can be used for serial in/serial out and serial in/parallel out operation. Shift Register

DIGITAL SYSTEMS TCE It can be used for parallel in/parallel out by using Q 3 as the output. When the SHIFT/LOAD input is LOW, the data on the parallel inputs are entered synchronously on the positive transition of the clock. When SHIFT/LOAD is HIGH, stored data will shift right (Q 0 to Q 3 ) synchronously with the clock. Inputs J and K are the serial data inputs to the first stage of the register (Q 0 ); Q 3 can be used for serial output data. The active-LOW clear input is asynchronous. Shift Register

DIGITAL SYSTEMS TCE Sample timing diagram for a 74HC195 shift register. Shift Register

DIGITAL SYSTEMS TCE Bit Bidirectional Shift Register-Logic Diagram Shift Register

DIGITAL SYSTEMS TCE Bit Bidirectional Shift Register-Operation A HIGH on the control input allows data bits inside the register to be shifted to the right and a LOW enables data bits inside the register to be shifted to the left. When the control input is HIGH, gates G 1 through G 4 are enabled, and the state of the Q output of each flip-flop is passed through to the D input of the following flip-flop. When a clock pulse occurs, the data bits are shifted one place to the right. When the control input is LOW, gates G 5 through G 8 are enabled, and the Q output of each flip-flop is passed through to the D input of the preceding flip-flop. When a clock pulse occurs, the data bits are then shifted one place to the left. Shift Register

DIGITAL SYSTEMS TCE Bit Bidirectional Shift Register-Timing Diagram Assume that initially Q0=1, Q1=1, Q2=0, and Q3=1 and the serial data-input is LOW. Timing diagram for the given control input waveform is given below: Shift Register

DIGITAL SYSTEMS TCE The Johnson Counter A Johnson counter will produce a modulus of 2n. A 4-bit device has a total of 8 states and the 5-bit device has a total of 10 states. The implementation of a Johnson counter is the same regardless of the number of stages. The Q output of each stage is connected to the D input of the next stage, except the Q output of the last stage is connected back to the D input of the first stage.

DIGITAL SYSTEMS TCE The Johnson Counter Clock PulseQ0Q1Q2Q Four-bit Johnson sequence:

DIGITAL SYSTEMS TCE The Johnson Counter Clock PulseQ0Q1Q2Q3Q Five-bit Johnson sequence:

DIGITAL SYSTEMS TCE The Johnson Counter

DIGITAL SYSTEMS TCE The Johnson Counter Timing sequence for a 4-bit Johnson counter

DIGITAL SYSTEMS TCE The Johnson Counter Timing sequence for a 5-bit Johnson counter

DIGITAL SYSTEMS TCE Logic diagram for a 10-bit ring counter. The interstage connections are the same as those for a Johnson counter, except that Q rather than Q is fed back from the last stage. The Ring Counter

DIGITAL SYSTEMS TCE bit ring counter sequence CLOCK PULSEQ0Q1Q2Q3Q4Q5Q6Q7Q8Q The Ring Counter

DIGITAL SYSTEMS TCE If a 10-bit ring counter has the initial state , determine the waveform for each of the Q outputs. The Ring Counter