SlideShare une entreprise Scribd logo
1  sur  39
EET 3350 Digital Systems Design

    Textbook: John Wakerly
        Chapter 8: 8.4


            Counters




                                  1
Counters
• Counters
  – Definition
  – Types                                              Count
  – Characteristics          Clock
                                        Counter

• Asynchronous Counters
  - 7490, 7492, 7493
                                     optional inputs
• Synchronous Counters
• MSI Counters                         S1         S2
                                                               S3
  – Especially the 74LS163     Sm
                                                               S4
• Counters in VHDL                            S5

• Other Counter Types
                                                                    2
Counters
     • A counter is a circuit that produces a numeric
       count each time an input clock pulse makes an
       active transition


       Clock                      Counter               Count




Load an initial value, reset                     May also enable count,
to starting count, etc.                          select direction, etc.

                               optional inputs
                                                                 3
Counter
• From another viewpoint, a counter is any sequential
  circuit whose state diagram is a single cycle
  – in other words, counters are a special case of a finite state
    machine
• Output is usually the state value, Moore machine

                     EN                    EN
 RESET
                                                            EN
                              EN     S2         EN
 EN           EN      S1
                                                     S3
                                            EN              EN
         Sm                   EN
                                                     S4
              EN
                            EN S5            EN
                                                                    4
Counters
• Counters differ by a number of basic
  characteristics, including:


       Characteristic Description
       Modulus        Length of sequence
       Coding         Count sequence
       Direction      Up or down
       Resetable      Reset to zero
       Loadable       Load a specific value



                                              5
Counters
• Applications include:
                              Present State   Next State
  – system clock                A       B      A     B
                                0      0       0     1
  – timer, delays               0      1       1     0
  – watches, clocks, alarms     1      0       1     1
                                1      1       0     0
  – counting events
  – memory addressing
  – frequency division          00             01

  – sequence control
  – cycle control
  – protocols                   11             10



                                                           6
Counter Types
• Asynchronous         • Modulus
 – Ripple                – Binary
• Synchronous            – Decade
 – Clocked               – etc.
                       • Ring
        000            • Johnson
                         – Twisted ring
  101            001
                       • Up/Down
                       • Linear Feedback Shift-
  100            010
                         Register Counter
        011              (LFSR)
                                             7
Counters
• Some examples of modulus and coding
  sequence for counters




                                        8
Counters
• Modulus
  – number of states in a counter’s cycle
• Given m states
  – modulo-m counter or divide-by-m counter
• Power-of-2 counters use all states
• Non-power-of-2 counters have extra, unused
  states
                 S1           S2
                                            S3
       Sm
                                            S4
                           S5
                                                 9
Example 4-bit Counters
• 4-bit Binary / Hex / Mod-16 Counter
  – 0000, 0001, 0010, … 1110, 1111, 0000, 0001, …
       all states used
• 4-bit BCD / Decade / Mod-10 Counter
  – 0000, 0001, 0010, … 1000, 1001, 0000, 0001, …
       six unused states
• 4-bit Ring Counter
  – 1000, 0100, 0010, 0001, 1000, 0100, …
       twelve unused states



                                                    10
Counters
• Ripple counters
  – asynchronous
  – an n-state counter that is formed from n cascaded
    flip-flops
  – the clock input to each of the individual flip-flops,
    with the exception of the first, is taken from the
    output of the preceding one
  – the count thus ripples along the counter's length
    due to the propagation delay associated with each
    stage of counting




                                                            11
Asynchronous Ripple Counter

                 Q3 Q2 Q1 Q0
          Q0
                 0 0 0 0
                 0 0 0 1
          Q1     0 0 1 0
                 0 0 1 1
                 0 1 0 0
          Q2
                 0 1 0 1
                 0 1 1 0
          Q3     0 1 1 1
                 1 0 0 0
                      .
                      .
                      .
                               12
Ripple Counter Timing
• The ideal count sequence for the ripple
  counter yields the timing diagram below
                  Q0    Q1    Q2    Q3



          CLOCK




     Q0

     Q1


     Q2

     Q3



                                            13
Ripple Counter Timing
• But there is delay ( ∆ ) as shown below:


CLK


Q0
          1∆

Q1
                    2∆


Q2
                                             3∆
      0        1         2        3               4

                                                  14
Asynchronous Ripple Counter

          Q0   divide-by-2



          Q1   divide-by-4
                              a T flip-flop is a
                              natural frequency
                              divider …
          Q2   divide-by-8



          Q3   divide-by-16




                                           15
Decade and Binary CountersDM7490A

• The monolithic counter contains four masterslave flip-flops
• Gating to provide a divide-by-two counter and a three-stage binary
   counter for which the count cycle length is divide-by-five.
• The counter has a gated zero reset and also has gated set-to-nine
   inputs for use in BCD nine’s complement applications.
• To use the maximum count length (decade), the B input is connected
to
   the QA output.
• The input count pulses are applied to input A and the outputs are as
   described in the appropriate Function Table.
• A symmetrical divide-by-ten count can be obtained from the
  counters by connecting the QD output to the A input and applying
  the input count to the B input which gives a divide-by-ten square
  wave at output QA.
Connection Diagram
Function Tables
BCD Count Sequence (Note 1) BCD Bi-Quinary (Note 2)




H = HIGH Level
L = LOW Level
X = Don’t Care
Note 1: Output QA is connected to input B for BCD count.
Note 2: Output QD is connected to input A for bi-quinary count
BCD Bi-Quinary sequence

CLK

QA

QD

QC

QB
      0   1   2   3   4   8   9   10   11   12   0
Reset/Count Function Table




 H = HIGH Level
 L = LOW Level
 X = Don’t Care
Logic Diagram




The J and K inputs shown without
connection are for reference only and
are functionally at a HIGH level.
SN5490A, SN5492A, SN5493A, SN54LS90, SN54LS92,
             SN54LS93
             SN7490A, SN7492A, SN7493A, SN74LS90, SN74LS92,
             SN74LS93
             DECADE, DIVIDE-BY-TWELVE AND BINARY COUNTERS
The three-stage binary counter has the count cycle length of
divide-by-five for the ’90, divide-by-six for the ’92, and divide-by-
eight for the ’93.

Logic Symbols
Function Tables
Count Sequence for ’92                       Count Sequence for ’93




 H = HIGH Level, L = LOW Level, X = Don’t Care
 Note: Output QA is connected to input CKB.
Reset/Count Function Table




 H = HIGH Level
 L = LOW Level
 X = Don’t Care
Logic Diagrams
Mod 11 counter using 7493


Clock   CLK A
                       QA
        CLK B
                       QB
                7493
                       QC
        R0(1)
                       QD
        R0(2)
Synchronous Counters
• Asynchronous counters are easy to
  understand, but avoid their use
  – slow, limited by propagation delays
  – error prone


• Characteristics of synchronous counters
  – use a common clock pulse to trigger all flip-flops
    simultaneously
  – have a higher clock speed
  – hardware is more complex but more reliable



                                                         27
4-Bit Counter
                           LSB




Synchronous
  counter


  serial enable logic


                           MSB   28
4-Bit Counter
                           LSB




Synchronous
  counter


  parallel enable logic


                           MSB   29
MSI Counters
• Counters can be built from individual SSI
  Flip-Flops, e.g.,
  – 7470
                                         D1   D2
  – 7474     and many others …
  – 7479
• Counters may also be built using MSI
  components
  – 74x90, 74x92, 74x93
  – 74x160, 74x161, 74x162, 74x163
  – 74x168, 74x169
  – 74x190, 74x191
                                  we’ll look at this one
  – 74x196, 74x197
                                                     30
MSI Counter
• 4-bit synchronous
  counter
  – edge-triggered
  – synchronously
    presettable
  – cascadable
• Typical Count Rate of
  35 MHz
• ‘160 and ‘162, Mod-10
• ‘161 and ‘163, Mod-16


                               31
MSI Counter
• 74LS163 4-bit synchronous counter




                                      16-pin DIP




                                               32
MSI Counter
• 74LS163 characteristics
  – edge-triggered
  – synchronously presettable
  – cascadable
  – count modulo 16 (binary)        74x163
• Synchronous Reset
  (Clear) input that overrides
  all other control inputs
  – active only during the rising
    clock edge



                                             33
MSI Counter
• 74LS163 logic symbols

                      datasheet

         text
                                  74x163




                                           34
MSI Counter
• 74LS163 state diagram and logic equations




                                              35
MSI Counter
• 74LS163 mode select table
• All signals must be high ( H ) to enable the
  count sequence to begin




                                                 36
MSI Counter
• 74x163 is a synchronous
  4-bit binary counter
• RCO=1 when all count
  bits are 1 and ENT is
  asserted




                                  37
MSI Counter
 • The control inputs for the 74x163 have the
   following effects:



clear
 load
 hold
hold




                                                38
74x163
Internal Logic
   Diagram

Contenu connexe

Tendances

Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & DecoderSyed Saeed
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip FlopNahian Ahmed
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsVinoth Loganathan
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital LogicISMT College
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersBony Yamin
 
Ripple counter
Ripple counterRipple counter
Ripple counterchandkec
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSelf-employed
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous countersLee Diaz
 
Mod 10 synchronous counter updated
Mod 10 synchronous counter updatedMod 10 synchronous counter updated
Mod 10 synchronous counter updatedDANISHAMIN950
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexerEstiak Khan
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decodersGaditek
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)SUBHA SHREE
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)ISMT College
 

Tendances (20)

Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Presentation on Flip Flop
Presentation  on Flip FlopPresentation  on Flip Flop
Presentation on Flip Flop
 
Counters
CountersCounters
Counters
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Sequential circuits in Digital Electronics
Sequential circuits in Digital ElectronicsSequential circuits in Digital Electronics
Sequential circuits in Digital Electronics
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 
Register in Digital Logic
Register in Digital LogicRegister in Digital Logic
Register in Digital Logic
 
MULTIPLEXER
MULTIPLEXERMULTIPLEXER
MULTIPLEXER
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous Counters
 
Encoders
EncodersEncoders
Encoders
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
SOP POS, Minterm and Maxterm
SOP POS, Minterm and MaxtermSOP POS, Minterm and Maxterm
SOP POS, Minterm and Maxterm
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Mod 10 synchronous counter updated
Mod 10 synchronous counter updatedMod 10 synchronous counter updated
Mod 10 synchronous counter updated
 
D and T Flip Flop
D and T Flip FlopD and T Flip Flop
D and T Flip Flop
 
Multiplexer and DeMultiplexer
Multiplexer and DeMultiplexerMultiplexer and DeMultiplexer
Multiplexer and DeMultiplexer
 
Encoders and decoders
Encoders and decodersEncoders and decoders
Encoders and decoders
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
Adder & subtractor (Half adder, Full adder, Half subtractor, Full subtractor)
 

En vedette (15)

Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
Johnson counter
Johnson counterJohnson counter
Johnson counter
 
Counter
CounterCounter
Counter
 
Binary to grey code conversion
Binary to grey code conversionBinary to grey code conversion
Binary to grey code conversion
 
23 gray codes
23 gray codes23 gray codes
23 gray codes
 
VHDL
VHDLVHDL
VHDL
 
Fpga
FpgaFpga
Fpga
 
VHDL CODE
VHDL CODE VHDL CODE
VHDL CODE
 
Dlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} pptDlc{binary to gray code conversion} ppt
Dlc{binary to gray code conversion} ppt
 
Programs of VHDL
Programs of VHDLPrograms of VHDL
Programs of VHDL
 
BCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codesBCD,GRAY and EXCESS 3 codes
BCD,GRAY and EXCESS 3 codes
 
Introduction to FPGA, VHDL
Introduction to FPGA, VHDL  Introduction to FPGA, VHDL
Introduction to FPGA, VHDL
 
FPGA
FPGAFPGA
FPGA
 
Fundamentals of FPGA
Fundamentals of FPGAFundamentals of FPGA
Fundamentals of FPGA
 
FPGA
FPGAFPGA
FPGA
 

Similaire à Counters

Presentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxPresentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxAniruddh70
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
FYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersFYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersArti Parab Academics
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Abhilash Nair
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfKannan Kanagaraj
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnanJ11
 
Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfTamiratDejene1
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Asif Iqbal
 
digital elctronics
digital elctronicsdigital elctronics
digital elctronicsAsif Iqbal
 

Similaire à Counters (20)

Counters
CountersCounters
Counters
 
Counters
CountersCounters
Counters
 
MSI Shift Registers
MSI Shift RegistersMSI Shift Registers
MSI Shift Registers
 
MSI Counters
MSI CountersMSI Counters
MSI Counters
 
Presentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptxPresentation on Counters for (Digital Systems Design).pptx
Presentation on Counters for (Digital Systems Design).pptx
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
counters.ppt
counters.pptcounters.ppt
counters.ppt
 
17 registers
17 registers17 registers
17 registers
 
FYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I CountersFYBSC IT Digital Electronics Unit V Chapter I Counters
FYBSC IT Digital Electronics Unit V Chapter I Counters
 
Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)Sequential Circuits - Flip Flops (Part 2)
Sequential Circuits - Flip Flops (Part 2)
 
Digital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdfDigital Electronics – Unit III.pdf
Digital Electronics – Unit III.pdf
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdf
 
Unit4_DE.pptx
Unit4_DE.pptxUnit4_DE.pptx
Unit4_DE.pptx
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 
digital elctronics
digital elctronicsdigital elctronics
digital elctronics
 
Counters.ppt
Counters.pptCounters.ppt
Counters.ppt
 
Sensors
SensorsSensors
Sensors
 

Plus de Abhilash Nair

Sequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsSequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsAbhilash Nair
 
Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineAbhilash Nair
 
VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)Abhilash Nair
 
Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Abhilash Nair
 
Feedback Sequential Circuits
Feedback Sequential CircuitsFeedback Sequential Circuits
Feedback Sequential CircuitsAbhilash Nair
 
Designing State Machine
Designing State MachineDesigning State Machine
Designing State MachineAbhilash Nair
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and SynthesisAbhilash Nair
 
Synchronous design process
Synchronous design processSynchronous design process
Synchronous design processAbhilash Nair
 
Analysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAnalysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAbhilash Nair
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machinesAbhilash Nair
 
Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Abhilash Nair
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesAbhilash Nair
 
Documentation Standards of an IC
Documentation Standards of an ICDocumentation Standards of an IC
Documentation Standards of an ICAbhilash Nair
 

Plus de Abhilash Nair (20)

Sequential Circuits - Flip Flops
Sequential Circuits - Flip FlopsSequential Circuits - Flip Flops
Sequential Circuits - Flip Flops
 
VHDL Part 4
VHDL Part 4VHDL Part 4
VHDL Part 4
 
Designing Clocked Synchronous State Machine
Designing Clocked Synchronous State MachineDesigning Clocked Synchronous State Machine
Designing Clocked Synchronous State Machine
 
VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)VHDL - Enumerated Types (Part 3)
VHDL - Enumerated Types (Part 3)
 
VHDL - Part 2
VHDL - Part 2VHDL - Part 2
VHDL - Part 2
 
Introduction to VHDL - Part 1
Introduction to VHDL - Part 1Introduction to VHDL - Part 1
Introduction to VHDL - Part 1
 
Feedback Sequential Circuits
Feedback Sequential CircuitsFeedback Sequential Circuits
Feedback Sequential Circuits
 
Designing State Machine
Designing State MachineDesigning State Machine
Designing State Machine
 
State Machine Design and Synthesis
State Machine Design and SynthesisState Machine Design and Synthesis
State Machine Design and Synthesis
 
Synchronous design process
Synchronous design processSynchronous design process
Synchronous design process
 
Analysis of state machines & Conversion of models
Analysis of state machines & Conversion of modelsAnalysis of state machines & Conversion of models
Analysis of state machines & Conversion of models
 
Analysis of state machines
Analysis of state machinesAnalysis of state machines
Analysis of state machines
 
Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)Sequential Circuits - Flip Flops (Part 1)
Sequential Circuits - Flip Flops (Part 1)
 
FPLDs
FPLDsFPLDs
FPLDs
 
CPLDs
CPLDsCPLDs
CPLDs
 
CPLD & FPLD
CPLD & FPLDCPLD & FPLD
CPLD & FPLD
 
CPLDs
CPLDsCPLDs
CPLDs
 
CPLDs
CPLDsCPLDs
CPLDs
 
Static and Dynamic Read/Write memories
Static and Dynamic Read/Write memoriesStatic and Dynamic Read/Write memories
Static and Dynamic Read/Write memories
 
Documentation Standards of an IC
Documentation Standards of an ICDocumentation Standards of an IC
Documentation Standards of an IC
 

Dernier

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxPoojaSen20
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptxiammrhaywood
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Seán Kennedy
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 

Dernier (20)

AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptxCulture Uniformity or Diversity IN SOCIOLOGY.pptx
Culture Uniformity or Diversity IN SOCIOLOGY.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptxAUDIENCE THEORY -CULTIVATION THEORY -  GERBNER.pptx
AUDIENCE THEORY -CULTIVATION THEORY - GERBNER.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...Student Profile Sample - We help schools to connect the data they have, with ...
Student Profile Sample - We help schools to connect the data they have, with ...
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 

Counters

  • 1. EET 3350 Digital Systems Design Textbook: John Wakerly Chapter 8: 8.4 Counters 1
  • 2. Counters • Counters – Definition – Types Count – Characteristics Clock Counter • Asynchronous Counters - 7490, 7492, 7493 optional inputs • Synchronous Counters • MSI Counters S1 S2 S3 – Especially the 74LS163 Sm S4 • Counters in VHDL S5 • Other Counter Types 2
  • 3. Counters • A counter is a circuit that produces a numeric count each time an input clock pulse makes an active transition Clock Counter Count Load an initial value, reset May also enable count, to starting count, etc. select direction, etc. optional inputs 3
  • 4. Counter • From another viewpoint, a counter is any sequential circuit whose state diagram is a single cycle – in other words, counters are a special case of a finite state machine • Output is usually the state value, Moore machine EN EN RESET EN EN S2 EN EN EN S1 S3 EN EN Sm EN S4 EN EN S5 EN 4
  • 5. Counters • Counters differ by a number of basic characteristics, including: Characteristic Description Modulus Length of sequence Coding Count sequence Direction Up or down Resetable Reset to zero Loadable Load a specific value 5
  • 6. Counters • Applications include: Present State Next State – system clock A B A B 0 0 0 1 – timer, delays 0 1 1 0 – watches, clocks, alarms 1 0 1 1 1 1 0 0 – counting events – memory addressing – frequency division 00 01 – sequence control – cycle control – protocols 11 10 6
  • 7. Counter Types • Asynchronous • Modulus – Ripple – Binary • Synchronous – Decade – Clocked – etc. • Ring 000 • Johnson – Twisted ring 101 001 • Up/Down • Linear Feedback Shift- 100 010 Register Counter 011 (LFSR) 7
  • 8. Counters • Some examples of modulus and coding sequence for counters 8
  • 9. Counters • Modulus – number of states in a counter’s cycle • Given m states – modulo-m counter or divide-by-m counter • Power-of-2 counters use all states • Non-power-of-2 counters have extra, unused states S1 S2 S3 Sm S4 S5 9
  • 10. Example 4-bit Counters • 4-bit Binary / Hex / Mod-16 Counter – 0000, 0001, 0010, … 1110, 1111, 0000, 0001, … all states used • 4-bit BCD / Decade / Mod-10 Counter – 0000, 0001, 0010, … 1000, 1001, 0000, 0001, … six unused states • 4-bit Ring Counter – 1000, 0100, 0010, 0001, 1000, 0100, … twelve unused states 10
  • 11. Counters • Ripple counters – asynchronous – an n-state counter that is formed from n cascaded flip-flops – the clock input to each of the individual flip-flops, with the exception of the first, is taken from the output of the preceding one – the count thus ripples along the counter's length due to the propagation delay associated with each stage of counting 11
  • 12. Asynchronous Ripple Counter Q3 Q2 Q1 Q0 Q0 0 0 0 0 0 0 0 1 Q1 0 0 1 0 0 0 1 1 0 1 0 0 Q2 0 1 0 1 0 1 1 0 Q3 0 1 1 1 1 0 0 0 . . . 12
  • 13. Ripple Counter Timing • The ideal count sequence for the ripple counter yields the timing diagram below Q0 Q1 Q2 Q3 CLOCK Q0 Q1 Q2 Q3 13
  • 14. Ripple Counter Timing • But there is delay ( ∆ ) as shown below: CLK Q0 1∆ Q1 2∆ Q2 3∆ 0 1 2 3 4 14
  • 15. Asynchronous Ripple Counter Q0 divide-by-2 Q1 divide-by-4 a T flip-flop is a natural frequency divider … Q2 divide-by-8 Q3 divide-by-16 15
  • 16. Decade and Binary CountersDM7490A • The monolithic counter contains four masterslave flip-flops • Gating to provide a divide-by-two counter and a three-stage binary counter for which the count cycle length is divide-by-five. • The counter has a gated zero reset and also has gated set-to-nine inputs for use in BCD nine’s complement applications. • To use the maximum count length (decade), the B input is connected to the QA output. • The input count pulses are applied to input A and the outputs are as described in the appropriate Function Table. • A symmetrical divide-by-ten count can be obtained from the counters by connecting the QD output to the A input and applying the input count to the B input which gives a divide-by-ten square wave at output QA.
  • 18. Function Tables BCD Count Sequence (Note 1) BCD Bi-Quinary (Note 2) H = HIGH Level L = LOW Level X = Don’t Care Note 1: Output QA is connected to input B for BCD count. Note 2: Output QD is connected to input A for bi-quinary count
  • 19. BCD Bi-Quinary sequence CLK QA QD QC QB 0 1 2 3 4 8 9 10 11 12 0
  • 20. Reset/Count Function Table H = HIGH Level L = LOW Level X = Don’t Care
  • 21. Logic Diagram The J and K inputs shown without connection are for reference only and are functionally at a HIGH level.
  • 22. SN5490A, SN5492A, SN5493A, SN54LS90, SN54LS92, SN54LS93 SN7490A, SN7492A, SN7493A, SN74LS90, SN74LS92, SN74LS93 DECADE, DIVIDE-BY-TWELVE AND BINARY COUNTERS The three-stage binary counter has the count cycle length of divide-by-five for the ’90, divide-by-six for the ’92, and divide-by- eight for the ’93. Logic Symbols
  • 23. Function Tables Count Sequence for ’92 Count Sequence for ’93 H = HIGH Level, L = LOW Level, X = Don’t Care Note: Output QA is connected to input CKB.
  • 24. Reset/Count Function Table H = HIGH Level L = LOW Level X = Don’t Care
  • 26. Mod 11 counter using 7493 Clock CLK A QA CLK B QB 7493 QC R0(1) QD R0(2)
  • 27. Synchronous Counters • Asynchronous counters are easy to understand, but avoid their use – slow, limited by propagation delays – error prone • Characteristics of synchronous counters – use a common clock pulse to trigger all flip-flops simultaneously – have a higher clock speed – hardware is more complex but more reliable 27
  • 28. 4-Bit Counter LSB Synchronous counter serial enable logic MSB 28
  • 29. 4-Bit Counter LSB Synchronous counter parallel enable logic MSB 29
  • 30. MSI Counters • Counters can be built from individual SSI Flip-Flops, e.g., – 7470 D1 D2 – 7474 and many others … – 7479 • Counters may also be built using MSI components – 74x90, 74x92, 74x93 – 74x160, 74x161, 74x162, 74x163 – 74x168, 74x169 – 74x190, 74x191 we’ll look at this one – 74x196, 74x197 30
  • 31. MSI Counter • 4-bit synchronous counter – edge-triggered – synchronously presettable – cascadable • Typical Count Rate of 35 MHz • ‘160 and ‘162, Mod-10 • ‘161 and ‘163, Mod-16 31
  • 32. MSI Counter • 74LS163 4-bit synchronous counter 16-pin DIP 32
  • 33. MSI Counter • 74LS163 characteristics – edge-triggered – synchronously presettable – cascadable – count modulo 16 (binary) 74x163 • Synchronous Reset (Clear) input that overrides all other control inputs – active only during the rising clock edge 33
  • 34. MSI Counter • 74LS163 logic symbols datasheet text 74x163 34
  • 35. MSI Counter • 74LS163 state diagram and logic equations 35
  • 36. MSI Counter • 74LS163 mode select table • All signals must be high ( H ) to enable the count sequence to begin 36
  • 37. MSI Counter • 74x163 is a synchronous 4-bit binary counter • RCO=1 when all count bits are 1 and ENT is asserted 37
  • 38. MSI Counter • The control inputs for the 74x163 have the following effects: clear load hold hold 38