EKT 121/4 ELEKTRONIK DIGIT 1

Similar documents
Module 3: Floyd, Digital Fundamental

Design Example: Counters. Design Example: Counters. 3-Bit Binary Counter. 3-Bit Binary Counter. Other useful counters:

Experiment # 9. Clock generator circuits & Counters. Eng. Waleed Y. Mousa

Asynchronous Counters. Asynchronous Counters

Counters & Shift Registers Chapter 8 of R.P Jain

DIGITAL COUNTERS. Q B Q A = 00 initially. Q B Q A = 01 after the first clock pulse.

ETEC 2301 Programmable Logic Devices. Chapter 10 Counters. Shawnee State University Department of Industrial and Engineering Technologies

WEEK 8.1 Registers and Counters. ECE124 Digital Circuits and Systems Page 1

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute 5. LECTURE: REGISTERS AND RELATED

To design digital counter circuits using JK-Flip-Flop. To implement counter using 74LS193 IC.

Chapter 7. Registers & Register Transfers. J.J. Shann. J. J. Shann

Flip-Flops, Registers, Counters, and a Simple Processor

Counters and Decoders

CHAPTER 11 LATCHES AND FLIP-FLOPS

Digital Systems Based on Principles and Applications of Electrical Engineering/Rizzoni (McGraw Hill

Flip-Flops and Sequential Circuit Design. ECE 152A Winter 2012

Flip-Flops and Sequential Circuit Design

ECE380 Digital Logic

Latches, the D Flip-Flop & Counter Design. ECE 152A Winter 2012

Chapter 8. Sequential Circuits for Registers and Counters

Contents COUNTER. Unit III- Counters

DIGITAL ELECTRONICS. Counters. By: Electrical Engineering Department

Digital Logic Design Sequential circuits

Memory Elements. Combinational logic cannot remember

DM74LS169A Synchronous 4-Bit Up/Down Binary Counter

Systems I: Computer Organization and Architecture

ASYNCHRONOUS COUNTERS

CHAPTER IX REGISTER BLOCKS COUNTERS, SHIFT, AND ROTATE REGISTERS

Theory of Logic Circuits. Laboratory manual. Exercise 3

Modeling Sequential Elements with Verilog. Prof. Chien-Nan Liu TEL: ext: Sequential Circuit

DIGITAL TECHNICS II. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute. 2nd (Spring) term 2012/2013

DM54161 DM74161 DM74163 Synchronous 4-Bit Counters

Standart TTL, Serie Art.Gruppe

Engr354: Digital Logic Circuits

Registers & Counters

Lesson 12 Sequential Circuits: Flip-Flops

Sequential Logic. (Materials taken from: Principles of Computer Hardware by Alan Clements )


Chapter 9 Latches, Flip-Flops, and Timers

Chapter 4 Register Transfer and Microoperations. Section 4.1 Register Transfer Language

Lecture-3 MEMORY: Development of Memory:

DEPARTMENT OF INFORMATION TECHNLOGY

Lecture 8: Synchronous Digital Systems

INTEGRATED CIRCUITS. For a complete data sheet, please also download:

Copyright Peter R. Rony All rights reserved.

Modeling Registers and Counters

Decimal Number (base 10) Binary Number (base 2)

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

Counters. Present State Next State A B A B

Counters are sequential circuits which "count" through a specific state sequence.

74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

CpE358/CS381. Switching Theory and Logical Design. Class 10

54LS169 DM54LS169A DM74LS169A Synchronous 4-Bit Up Down Binary Counter

BINARY CODED DECIMAL: B.C.D.

Fig1-1 2-bit asynchronous counter

Chapter 2 Logic Gates and Introduction to Computer Architecture

CHAPTER 11: Flip Flops

DATA SHEET. HEF4017B MSI 5-stage Johnson counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

Lab 1: Study of Gates & Flip-flops

Digital Electronics Detailed Outline

Upon completion of unit 1.1, students will be able to

Having read this workbook you should be able to: recognise the arrangement of NAND gates used to form an S-R flip-flop.

COMBINATIONAL and SEQUENTIAL LOGIC CIRCUITS Hardware implementation and software design

54191 DM54191 DM74191 Synchronous Up Down 4-Bit Binary Counter with Mode Control

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

DM74LS193 Synchronous 4-Bit Binary Counter with Dual Clock

Sequential Logic Design Principles.Latches and Flip-Flops

Digital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng

Manchester Encoder-Decoder for Xilinx CPLDs

DATA SHEET. HEF40193B MSI 4-bit up/down binary counter. For a complete data sheet, please also download: INTEGRATED CIRCUITS

CDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012

Asynchronous counters, except for the first block, work independently from a system clock.

DM74LS191 Synchronous 4-Bit Up/Down Counter with Mode Control

2 : BISTABLES. In this Chapter, you will find out about bistables which are the fundamental building blocks of electronic counting circuits.

Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots

Digital Controller for Pedestrian Crossing and Traffic Lights

PART B QUESTIONS AND ANSWERS UNIT I

SN54/74LS192 SN54/74LS193

So far we have investigated combinational logic for which the output of the logic devices/circuits depends only on the present state of the inputs.

SEQUENTIAL CIRCUITS. Block diagram. Flip Flop. S-R Flip Flop. Block Diagram. Circuit Diagram

Take-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas

The components. E3: Digital electronics. Goals:

Sequential Logic: Clocks, Registers, etc.

IE1204 Digital Design F12: Asynchronous Sequential Circuits (Part 1)

Operating Manual Ver.1.1

54LS193 DM54LS193 DM74LS193 Synchronous 4-Bit Up Down Binary Counters with Dual Clock

SN54HC191, SN74HC191 4-BIT SYNCHRONOUS UP/DOWN BINARY COUNTERS

Modeling Latches and Flip-flops

Wiki Lab Book. This week is practice for wiki usage during the project.

LAB #4 Sequential Logic, Latches, Flip-Flops, Shift Registers, and Counters

74F168*, 74F169 4-bit up/down binary synchronous counter

NOTE: The Flatpak version has the same pinouts (Connection Diagram) as the Dual In-Line Package.

EE 42/100 Lecture 24: Latches and Flip Flops. Rev B 4/21/2010 (2:04 PM) Prof. Ali M. Niknejad

Using Altera MAX Series as Microcontroller I/O Expanders

74AC191 Up/Down Counter with Preset and Ripple Clock

RETRIEVING DATA FROM THE DDC112

Jianjian Song LogicWorks 4 Tutorials (5/15/03) Page 1 of 14

Transcription:

EKT 2/4 ELEKTRONIK DIGIT Kolej Universiti Kejuruteraan Utara Malaysia Sequential Logic Circuits - Shift Registers -

Basic Shift Register Functions Consist of an arrangement of flip-flops. Important in applications involving storage and transfer of data (data movement) in digital system Used solely for storing and shifting data (s and s) entered into it from an external source and possesses no characteristic internal sequence of states. D flip-flops are widely use to store and move data

The flip-flop as a storage element. When a is on D, Q becomes a at triggering edge of CLK or remains a if already in the SET state When a is on D, Q becomes a at triggering edge of CLK or remains a if already in the RESET state

Basic data movement in shift registers. (Four bits are used for illustration. The bits move in the direction of the arrows.)

Types of Shift Register. Serial In / Serial Out Shift Registers (SISO) (Daftar anjakan masukan siri / keluaran siri) 2. Serial In /Parallel Out Shift Registers (SIPO) (Daftar anjakan masukan siri / keluaran selari) 3. Parallel In / Serial Out Shift Registers (PISO) (Daftar anjakan masukan selari / keluaran siri) 4. Parallel In / Parallel Out Shift Registers (PIPO) (Daftar anjakan masukan selari / keluaran selari)

.Serial in / serial out shift register (SISO) Accepts data serially one bit at a time on a single line Produces the stored information on its output also in serial form

Four bits () being entered serially into the register.

Four bits () being serially shifted out of the register and replaced by all zeros.

Example : The states of 5-bit register for the specified data input and clock waveforms. Assume the register is initially cleared (all s)

Logic symbol : 8-bit serial in/serial out shift register. Indicates a shift register (SRG) with 8 bits capacity

2.Serial in / parallel out shift register (SIPO) Data bits entered serially (right-most bit first) Difference from SISO is the way data bits are taken out of the register in parallel. Output of each stage is available.

Example : The states of 4-bit register (SRG 4) for the data input and clocks waveforms. Assume the register initially contains all s

Example : The 74HC64 8-bit serial in/parallel out shift register. Logic diagram Logic Symbol

Sample timing diagram for a 74HC64 shift register.

3.Parallel In / Serial Out Shift Registers (PISO) The bits entered simultaneously into their respective stages on parallel lines. Produces the stored information on its output in serial form

Example : A 4-bit parallel in/serial out shift register. Data input lines Allows 4 bits data to load in parallel into register. Logic diagram When SHIFT/LOAD is LOW, gates G,G2,G3 are enabled, allow each data bit to be applied to D input of its respective flip-flop. Flip-flop D= will SET and D= will RESET storing 4 bit storage simultaneously. When SHIFT/LOAD is HIGH, gates G,G2,G3 are disabled, G4,G5,G6 are enabled allow data bit shift to right from one stage to the next. OR gates allow normal shifting operation or parallel data-entry operation Logic depending symbolon which AND gates are enabled

Example : The data-output waveform for a 4-bit register with parallel input data and the Clock.. Clock pulse, parallel data = is loaded making Q3 a. 2. Clock pulse2, from Q2 shifted onto Q3. 3. Clock pulse3, shifted onto Q3. 4. Clock pulse4, last bit data () is shifted onto Q3. 5. Clock pulse5, all data bits have been shifted out. and only s remain in the register.

Example : The 74HC65 8-bit parallel load shift register. Refer to page 542 on your text book

Sample timing diagram for a 74HC65 shift register. Refer to page 542 on your text book

4.Parallel in/parallel out shift registers (PIPO)

Example : The 74HC95 4-bit parallel access shift register. Refer to page 544 on your text book for details.

Sample timing diagram for a 74HC95 shift register. Refer to page 544 on your text book for details.

Bidirectional Shift Register Data can be shifted left/right Can be implemented by using a gating logic that enables the transfer of data bit from one stage to next stage to the right or to the left depending on level of control line. 74HC94 is an bidirectional universal shift register

Four-bit bidirectional shift register.

74HC94 Universal shift register has both serial and parallel input and output capability.

Sample timing diagram for a 74HC94 shift register.

Shift Register Counters Basically a shift register with the serial output connected back to the serial input to produce special sequences. Classified as a counter because they exhibit specific sequence of states. Two most common types of shift register: ) Johnson Counter 2) Ring Counter

.Johnson Counter In a Johnson counter the complement of the output of the last flip-flip is connected back to the D input of the first flipflop. Feedback arrangement produces a characteristic sequence of states. Generally, Johnson counter will produce a modulus of 2n, where n is a number stages of counter.

Four-bit and 5-bit Johnson counters.

7 6 5 4 3 2 Q 3 Q 2 Q Q Clock pulse Four-bit Johnson Sequence

Timing sequence for a 4 bit Johnson counter

7 8 Q 3 9 6 5 4 3 2 Q 4 Q 2 Q Q Clock pulse Five-bit Johnson Sequence

Timing sequence for a 5 bit Johnson counter

2.Ring Counter A ring counter utilizes one flip-flop for each states in its sequence. Advantage : Decoding gates are not required. A logic diagram for a -bit ring counter as follow

Ten-bit ring counter sequence 9 8 7 6 5 4 3 2 Q 9 Q 8 Q 7 Q 6 Q 5 Q 4 Q 3 Q 2 Q Q Clock pulse

The initial state is

Shift Register Applications Examples of Shift Register applications : Time delay Serial-to-Parallel Data Converter Universal Asynchronous Receiver Transmitter (UART) Keyboard encoder

.The shift register as a time-delay device. SISO shift register can be used to provide a time delay from input to output that is the function of number of stages (n) in register and clock frequency. Cascading shift register will increase time delay and decreased by taking the output from successively low stages in register (if available)

Example : A ring counter using a 74HC95 shift register.

Timing diagram showing two complete cycles of the ring counter when it is initially preset to

2.Simplified logic diagram of a serial-to-parallel converter. Logic diagram

Serial data format.

Timing diagram illustrating operation of serial-to-parallel data converter

3. Universal Asynchronous Receiver Transmitter (UART) Receives data in serial format, converts data to parallel format and place them on the data bus. Also accepts parallel data from data bus, converts data to serial format and transmits them to external device.

Basic UART block diagram

4.Simplified keyboard encoding circuit.

Next week Introduction to Programmable Logic Devices (PLD) -Thank you -