Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6

Slides:



Advertisements
Similar presentations
Principles & Applications
Advertisements

COUNTERS Counters with Inputs Kinds of Counters Asynchronous vs
CHAPTER 3 Sequential Logic/ Circuits.  Concept of Sequential Logic  Latch and Flip-flops (FFs)  Shift Registers and Application  Counters (Types,
Digital Logic Chapter 5 Presented by Prof Tim Johnson
EKT 124 / 3 DIGITAL ELEKTRONIC 1
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
ENGIN112 L20: Sequential Circuits: Flip flops October 20, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 20 Sequential Circuits: Flip.
CS 151 Digital Systems Design Lecture 20 Sequential Circuits: Flip flops.
ENGIN112 L27: Counters November 5, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 27 Counters.
CS370 Counters. Overview °Counter: A register that goes through a prescribed series of states °Counters are important components in computers. °Counters.
C.S. Choy1 SEQUENTIAL LOGIC A circuit’s output depends on its previous state (condition) in addition to its current inputs The state of the circuit is.
Sequential Circuit Introduction to Counter
Lab 5 :JK Flip Flop and Counter Fundamentals:
Chapter 3: Sequential Logic Circuit EKT 121 / 4 ELEKTRONIK DIGIT 1.
A presentation on Counters
Electronics Technology
EKT 124 / 3 DIGITAL ELEKTRONIC 1
1 Sequential Circuits Registers and Counters. 2 Master Slave Flip Flops.
Electronics Technology
Rabie A. Ramadan Lecture 3
CENT-113 Digital Electronics 1 Flip Flops TI Type 502 Flip Flop: 1st production IC in 1960.
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
 Counters are sequential circuits which "count" through a specific state sequence. They can count up, count down, or count through other fixed sequences.
Sequential logic circuits
Decade Counter (BCD Counter). Introduction A counter which is reset at the 10 th clock pulse is called decade counter. The decade counter is otherwise.
Registers and Counters
1 Lecture #11 EGR 277 – Digital Logic Ch. 5 - Synchronous Sequential Logic There are two primary classifications of logic circuits: 1.Combinational logic.
Unit 1 – Counters and Registers Mr. Grimming. Introduction FFs and logic gates are combined to form various counters and registers. Unit Goals Goals:
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.
Flip-Flop Flip-flops Objectives Upon completion of this chapter, you will be able to :  Construct and analyze the operation of a latch flip-flop made.
1 Homework Reading –Tokheim Chapter 9.1 – 9.6 Machine Projects –Continue on mp3 Labs –Continue in labs with your assigned section.
Sequential logic circuits First Class 1Dr. AMMAR ABDUL-HAMED KHADER.
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Asynchronous Counters with SSI Gates
Sequential Logic.
EKT 221 – Counters.
Prof. Hsien-Hsin Sean Lee
EKT 221 : Digital 2 COUNTERS.
Sequential Logic Counters and Registers
Flip-Flop.
CS1104 – Computer Organization
CISE204: Design of Digital Systems Lecture 18 : Sequential Circuits
Sequential Circuit - Counter -
3.2 Shift Register Basic shift register function
D Flip-Flop.
ECE Digital logic Lecture 16: Synchronous Sequential Logic
Digital Fundamentals with PLD Programming Floyd Chapter 10
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.
CS Fall 2005 – Lec. #5 – Sequential Logic - 1
COE 202: Digital Logic Design Sequential Circuits Part 4
Counters and Registers
Lecture Part A Combinational Logic Design & Flip Flop
29-Nov-18 Counters Chapter 5 (Sections ).
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN
Dr. Clincy Professor of CS
Computer Architecture and Organization: L02: Logic design Review
CSE 370 – Winter Sequential Logic-2 - 1
Chapter 8 Counters Changjiang Zhang
Principles & Applications
FLIP-FLOPS.
Digital Logic Department of CNET Chapter-6
Digital Logic Department of CNET Chapter-6
Flip-Flops.
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Registers and Counters
Counters.
Week 11 Flip flop & Latches.
Presentation transcript:

Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6 Continue on mp3 Labs Continue in labs with your assigned section

Sequential Circuits A sequential circuit is constructed using a combinational circuit with memory circuits Similar to a C function with static internal variables (state memory) One additional input is a clock signal Input(s) Combinational Logic Output(s) Memory Elements Clock

Simple Memories (Flip-Flops) Simplest is Reset-Set (R-S type) Note the inverted signal inputs Can buy a standard TTL R-S flip-flop (LS279) S R Q Q 0 1 1 0 (set) 1 0 0 1 (reset) 1 1 no change (hold) 0 0 unpredictable S Q R Q S NAND Q NAND Q R

Simple Memories (Flip-Flops) Timing Diagram S R Q No Effect No Effect Hold Set Hold Reset Hold Hold 1 1 1 1

Synchronous Flip-Flops Use of a clock to make the circuit synchronous Syn (with) + chronous (clock) => with a clock Level-triggered (changes state while clock high) S S TRUTH TABLE S R Clock Q 0 1 0 1 0 1 0 0 No Chg 1 1 Prohibited NAND R-S Flip Flop Q Clock NAND Q R R

The D-Type Flip-Flop Single data input and edge-triggered clock Also called a “Delay” flip-flop (D-type) Changes state on either rising or falling edge D (Data) S TRUTH TABLE D Clock Q 0 0 1 1 NAND R-S Flip Flop Q NAND Q R C Clock A Edge To Pulse Converter A B C 0 1 0 1 1 (Due to delay through inverter) 1 0 0 AND B

Actual D-Type Flip-Flop Has preset (PR) and clear (CLR) inputs which can be set asynchronously (but not both at same time) Nomenclature use > for an edge-triggered input PR D Q > Clk Q CLR PR goes to 0, Q=1 independent of D and Clk CLR goes to 0, Q=0 independent of D and Clk If PR=1, CLR=1, D and Clk will operate normally

Timing Diagrams for D Flip-Flop

Clock - Divide by Two Counter Connect Q output back to D input Timing Diagram (after starting with Q = 0) PR D Q > Clk Q CLR Clk Q Q is an output clock at ½ the frequency of the input clock

Shift Registers Serial in, Parallel out: Four Bit Parallel Output Available After Four Clocks/Shifts Serial Data In D Q D Q D Q D Q FF1 FF1 FF1 FF1 Clock In

Shift Registers Parallel in, Serial out: Four Bit Parallel Input Presented for One Clock Edge while “Load” Signal is True Load/Shift# M U x M U x M U x M U x Serial Data Out 1 D Q D Q D Q D Q FF1 FF1 FF1 FF1 Clock In

The J-K or Universal Flip-Flop Named for Jack Kilby (TI Engineer / Inventor of IC) Three synchronous inputs (plus preset and clear) J-K flip-flop is available as a 7473 chip Can be edge-triggered or level-triggered Example shown is falling “edge triggered” TRUTH TABLE J K Clock Q 0 0 Stays same 0 1 0 1 0 1 1 1 Toggles PR J Q >Clk K Q CLR

J-K Flip-Flop Internals Avoids an invalid input such as 0 0 to the R-S Flip Flop AND S K R-S Flip Flop Q Edge Detect Clock AND Q J R

Using J-K Flip-Flops Primary use is for storage registers and counters Mod-16 counter also known as a ripple counter X3 X2 X1 X0 counts 0x0 ... 0xF (Hexadecimal) sequentially X0 X1 X2 X3 J Q J Q J Q J Q Clk > > > > K K K K Vcc (+5 V)

Timing diagram for Mod-16 Counter Note that the counter actually serves to divide down the input clock!

Counter Range != 2N X0 X1 X2 NAND J Q J Q J Q > > > K K K Vcc (+5 V) J Q J Q J Q > > > K K K Reset Clk Can we we make it count to something different than 2N? Ans. Yes, using a combinational logic (a NAND Gate in this case) Counts: 0, 1, 2, 3, 4, 5, 0, 1, …

Synchronous BCD up/down counter BCD Up/Down Counter is available as a 74192 BCD stands for Binary Coded Decimal Counts 0000 -1001, then carries LED Bit Display D QD C QC B QB 74192 BCD Up/Down Counter A QA Load Data Count Up Borrow Count Down Clear Carry

Describing Sequential Circuits In general, Next state = f(inputs, current state) Outputs = f(inputs, current state) Example: State diagram:

Digital Logic Summary Combinational circuits: Made from gates without feedback Have no internal states Outputs depend only on current inputs Fully defined by truth table on the inputs Passes clocks (if any) as wave trains Output states constantly change with inputs

Digital Logic Summary Sequential circuits: Have feedback among the gates Can have internal states Outputs depend on inputs and past inputs (via values of internal states) Not completely described by pure truth table on inputs Usually one input is a clock signal Outputs usually change on one clock edge only