Lab 13 : Binary Counter Systems:

Slides:



Advertisements
Similar presentations
Counters and Registers
Advertisements

Lab 8 : Multiplexer and Demultiplexer Systems:
Lab 08: SR Flip Flop Fundamentals:
Lab 10 :Serial Data Transfer System:
Lab 15 :BCD Counters and Frequency Division:
Lecture 23: Registers and Counters (2)
Lab 9: Matrix Keypad : ”No Key Press” Analysis Slide #2 Slide #3 ”Press and Hold Key 5” Analysis.
Registers and Counters
Asynchronous Counter with MSI Gates
Lab 09 :D Flip Flop, Shift Registers and Switch Bounce: Slide 2 Slide 3 The D Flip Flop. 4-Bit Shift Register. Slide 4 Shift Register De-bounce System:
Digital Logic Chapter 5 Presented by Prof Tim Johnson
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.
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.
EET 1131 Unit 11 Counter Circuits  Read Kleitz, Chapter 12, skipping Sections and  Homework #11 and Lab #11 due next week.  Quiz next week.
Lab 5 :JK Flip Flop and Counter Fundamentals:
Electronics Technology
Asynchronous Counters
Counters.
Chapter 1_4 Part II Counters
Asynchronous Counter © 2014 Project Lead The Way, Inc.Digital Electronics.
Counter Section 6.3.
Registers and Counters
Registers and Counters
Electronics Technology
Asynchronous Counters with SSI Gates
Synchronous Counters with SSI Gates
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd.
SEQUENTIAL CIRCUITS Component Design and Use. Register with Parallel Load  Register: Group of Flip-Flops  Ex: D Flip-Flops  Holds a Word of Data 
2017/4/24 CHAPTER 6 Counters Chapter 5 (Sections )
Synch 1.1 Synchronous Counters 1 ©Paul Godin Created January 2008.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 17 Dr. Shi Dept. of Electrical and Computer Engineering.
Asynch 1.1 Asynchronous Counters 1 ©Paul Godin Last Edit Sept 2009.
CHAPTER 8 - COUNTER -.
Sequential logic circuits
Synchronous Counter with MSI Gates
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.
Digital Electronics.
Basic terminology associated with counters Technician Series
Lab 12 :JK Flip Flop Fundamentals: Slide 2 Slide 3 JK Flip-Flop. JK Flip-Flop and waveform diagrams.
Digital Design: Sequential Logic Blocks
Dr. Clincy Professor of CS
FLIP FLOPS Binary unit capable of storing one bit – 0 or 1
LATCHED, FLIP-FLOPS,AND TIMERS
Homework Reading Machine Projects Labs Tokheim Chapter 9.1 – 9.6
Registers and Counters
EET 1131 Unit 11 Counter Circuits
Synchronous Counter with MSI Gates
Asynchronous Counters with SSI Gates
Sequential Logic.
Prof. Hsien-Hsin Sean Lee
Sequential Logic Counters and Registers
FIGURE 5.1 Block diagram of sequential circuit
Sequential Circuit: Counter
Principles & Applications
Presented by Ali Maleki Spring Semester, 2009
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.
Asynchronous Counters with SSI Gates
Synchronous Counters with MSI Gates
29-Nov-18 Counters Chapter 5 (Sections ).
Synchronous Counters with MSI Gates
Dr. Clincy Professor of CS
CSE 370 – Winter Sequential Logic-2 - 1
Chapter 8 Counters Changjiang Zhang
Switching Theory and Logic Design Chapter 5:
14 Digital Systems.
Outline Registers Counters 5/11/2019.
Counters.
Presentation transcript:

Lab 13 : Binary Counter Systems: Slide 2 Three stage ripple counter. Slide 3 Down Counters. Slide 4 Up/Down Counters. Slide 5 Altera 4count Symbol.

Lab 13 : Three Stage Ripple counter : JK flip flops connected in the toggle mode can be connected together to create a binary counter system. Start with one JK flip flop, apply a clock waveform and sketch the Q output response. Assume PRE and Clr has been disabled (=1) on all flip flops. Input J K Qa >Clk 1 J K Qb >Clk 1 J K Qc >Clk 1 Qc Qb Qa In 1 2 3 4 5 6 7 1 2 3 4 5 6 7 Qa 1 1 Qa will toggle on each negative edge of the input clock. Qb 1 Connect a second stage to output Qa. Qb will toggle on each negative edge of Qa. 1 Qc 1 Qc will toggle on each negative edge of Qb. Connect a third stage to output Qb. 1 1 Label the input clock pulses from 0 to 7 and place the counter response in a table. The table is called a COUNT state table. The counter is called a MOD 8 counter because it has 8 different count states. The counter restarts at 0, 0, 0 after clock input 7. MOD is short for the word MODULUS. Connect the flip flop outputs to 3 LED’s and you will see a binary count sequence from 0 … to … 7. The speed at which the counter counts is controlled by the input clock. 1 PPS input clock will display the 0 to 7 count sequence on the LED’s in 8 seconds. Each count state would last 1 sec. If the clock input was 1000 PPS then all 3 LED’s would appear to be constantly on at the same time. A count cycle would take 8milliSec. Too fast to be visible on the 3 LED’s. Slide #2

Lab 13: Down Counters : To make a counter count backwards all you need to do is to connect the Q to the Clk of the next flip flop. J K Qa >Clk 1 Qb Qc Input Qc Qb Qa In 1 2 3 4 5 6 7 Qa toggles on every negative edge of the input clock. Qa 1 1 Qb Qb toggles on every negative edge of Qa. 1 Qa A negative edge on Qa is the same as the positive edge Qa. 1 Qc toggles on every negative edge of Qb. Which is the same as the positive edge of Qb. Qc 1 1 1 If you place the count states in a table you can see the down count sequence. Slide #3

Lab 13: Up/Down Counter : This system combines the features of both an up and a down counter. The system has a count direction control input to select up counting or down counting. J K Qa >Clk 1 Qb Qc Up/Down 1 1 Qa•1 Qb•1 Qa•1 Qb•1 When the control input is low, the top AND gates will pass the logic levels from the Q outputs. The bottom AND gates output 0. The OR gate outputs a Q•1+0 = Q. This connects Q to clock and the counter counts up or forward. When the control input is high, the bottom AND gates pass the logic levels from the Q outputs. The top AND gates output 0. The OR gate outputs a Q•1+0 = Q. This connects Q to clock and the counter counts down or backwards. Slide #4

Lab 13: Altera 4Count Symbol: The Altera 4count symbol is a 4-bit counter system. Apply a pulse waveform to the positive edge triggered clock input and it counts from 0 to 15. Synchronous Load: LDN and ABCD and Clock: LDN=0 loads a number into Qa, Qb, Qc, Qd from A, B, C, D on positive edge of clock. LDN=1 disables the load feature. Clock is used for counting. The animation will demonstrate how to load the number 6 into the counter. Step 1: Disable load and clear inputs 1 6 Step 1: Assert load and place number at inputs 1 6 Step 1: Place number at inputs Step 2: Enable up counting 0 1 0 0 Step 4: Enable down counting 0 1 0 0 Step 5: Apply 4 clock pulses Step 3: Apply 4 clock pulses LDN A B C D CIN DNUP CLRN CLK SETN QA QB QC QD COUT 4count 1 Asynchronous Load: SETN and ABCD: SETN=0 loads a number into Qa, Qb, Qc, Qd from A, B, C, D immediately. The clock is not required. SETN =1 disables the load feature. Clock is used for counting. The animation will demonstrate how to load the number 6 into the counter. 0 1 1 0 0 1 1 0 1 Step 2: Assert SETN 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 1 0 0 0 1 1 0 0 0 1 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 1 0 0 1 1 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 1 0 1 0 0 1 1 0 1 1 1 1 1 1 1 1 0 1 1 1 1 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 1 1 0 1 1 0 Assert CLRN Asynchronous Clear: CLRN: CLRN=0 resets (clears) Qa=Qb=Qc=Qd =0. Clock not required CLRN =1 disables the clear feature. Clock is used for counting. Step 2: Assert Clock Count Direction: DNUP: DNUP=0 Counter counts forward or up (0,1,2…). DNUP=1 Counter counts backwards or down (15,14,13…). The animation will demonstrate an up count sequence to 4 and then a down count sequence back to 0. The count sequence can be reversed at any time. CIN and COUT: Carry in and Carry out are used to cascade counter symbols. Cascading will be explained in an upcoming lab. Altera Default Values: Altera connects LDN, SETN, CLRN, DNUP and CIN to 1 if they are left unconnected in a drawing. These are called default values. The default values will make the counter count down and disable the loading and clearing functions. Slide #5