SlideShare a Scribd company logo
1 of 18
Counters
4 bit Ring Counter
• The ring counter is a cascaded connection of flip
flops, in which the output of last flip flop is
connected to input of first flip flop.
• In ring counter if the output of any stage is 1,
then its reminder is 0.
• The Ring counters transfers the same output
throughout the circuit.
• That means if the output of the first flip flop is
1, then this is transferred to its next stage i.e.
2nd flip flop.
• By transferring the output to its next stage, the
output of first flip flop becomes 0.
And this process continues for all the stages of a ring
counter.
• If we use n flip flops in the ring counter, the ‘1’
is circulated for every n clock cycles.
• The circuit diagram of the ring counter is shown
Asynchronous or ripple counters
• The logic diagram of a 2-bit ripple up counter is shown in
figure. The toggle (T) flip-flop are being used. But we can
use the JK flip-flop also with J and K connected
permanently to logic 1. External clock is applied to the
clock input of flip-flop A and QA output is applied to the
clock input of the next flip-flop i.e. FF-B.
Operation
• Initially let both the FFs be in the reset state QBQA =
00 initially
• After 1st negative clock edge As soon as the first
negative clock edge is applied, FF-A will toggle and QA
will be equal to 1.
QA is connected to clock input of FF-B. Since QA has
changed from 0 to 1, it is treated as the positive clock
edge by FF-B. There is no change in QB because FF-B
is a negative edge triggered FF.
• QBQA = 01 after the first clock pulse.
• After 2nd negative clock edge On the arrival of
second negative clock edge, FF-A toggles again and
QA = 0.
The change in QA acts as a negative clock edge for FF-
B. So it will also toggle, and QB will be 1.
QBQA = 10 after the second clock pulse.
•After 3rd negative clock edge On the arrival of 3rd
negative clock edge, FF-A toggles again and QA
become 1 from 0.
Since this is a positive going change, FF-B does not
respond to it and remains inactive. So QB does not
change and continues to be equal to 1.
QBQA = 11 after the third clock pulse.
• After 4th negative clock edge On the arrival of 4th
negative clock edge, FF-A toggles again and QA
becomes 1 from 0.
This negative change in QA acts as clock pulse for FF-
B. Hence it toggles to change QB from 1 to 0.
QBQA = 00 after the fourth clock pulse.
Synchronous counters
If the "clock" pulses are applied to all the flip-flops in a counter
simultaneously, then such a counter is called as synchronous counter.
2-bit Synchronous up counter
The JA and KA inputs of FF-A are tied to logic 1. So FF-A will work as a
toggle flip-flop. The JB and KB inputs are connected to QA.
Operation
• Initially let both the FFs be in the
reset state QBQA = 00 initially.
• After 1st negative clock edge As
soon as the first negative clock
edge is applied, FF-A will toggle
and QA will change from 0 to 1.
But at the instant of application of
negative clock edge, QA , JB = KB =
0. Hence FF-B will not change its
state. So QB will remain 0.
QBQA = 01 after the first clock
pulse.
• After 2nd negative clock edge On
the arrival of second negative clock
edge, FF-A toggles again and QA
changes from 1 to 0.
But at this instant QA was 1. So JB =
KB= 1 and FF-B will toggle. Hence
QB changes from 0 to 1.
QBQA = 10 after the second clock
pulse.
After 3rd negative clock edge On application
of the third falling clock edge, FF-A will toggle
from 0 to 1 but there is no change of state for
FF-B.
QBQA = 11 after the third clock pulse.
After 4th negative clock edge On application
of the next clock pulse, QA will change from 1
to 0 as QB will also change from 1 to 0.
QBQA = 00 after the fourth clock pulse.
Synchronous 3-bit Up/Down Counter
• The circuit is a simple 3-bit Up/Down synchronous counter using JK
flip-flops configured to operate as toggle or T-type flip-flops giving a
maximum count of zero (000) to seven (111) and back to zero again.
• Then the 3-Bit counter advances upward in sequence
(0,1,2,3,4,5,6,7) or downwards in reverse sequence
(7,6,5,4,3,2,1,0).
• Common chips available are the 74HC190 4-bit BCD decade
Up/Down counter, the 74F569 is a fully synchronous Up/Down
binary counter and the CMOS 4029 4-bit Synchronous Up/Down
counter.
Circuit Diagram
Waveform
Modulo N Counter (or) Divide by N counter:
• A counter, whic is reset (makes the whole output as zeros) at the nth clock
pulse is called 'mod n counter' or divide b nth counter'.
• Logic gates that are connected externally, make to reset the counter at
the nth clock pulse.
• An extra NAND gate is generally used for making divide by n counters.
• For this first we must know, which flip-flops output are actually is high (1)
level in the nthclock pulse.
• Then connect the outputs of that flip-flops to the input terminals of the
NAND gate.
• The output terminal of the NAND gate.
•
• The output terminal of the NAND gate is connected to the reset terminal
of the counter.
• Thus at the nth clock pulse, all inputs connected to the NAND gate are
high, makes the output as 0, and to reset the counter.
• After applying the next clock pulse the counter will start the count from its
initial level.
• The number of flip-flops needed, for this counter depends upon the 'n'
value.
• A three bit counter, counts upto 7 (=23-1). Similarly an 'n' bit counter,
counts up to 2n-1 value.
Mod 3 counter
• We can design the MOD 3 counter using 2 FFs
as 3 is less than 4.
• We have to reset the counter after the count
of 0,1,2 i.e. when output is 3 we reset the
counter.
• Hence we need to reset only when we have
the output Q0= 1 & Q1=1.
• Now firstly design MOD-4 counter using 2 FFs
and then take NAND of Q0 & Q1 and feed the
output to CLEAR of both FFs.
Q1 Q0 OUTPUT of reset
logic
0 0 1
0 1 1
1 0 1
1 1 0
Circuit Diagram Truth Table
Karnaugh map
Modulo 5 Counter
•A counter which is reset at
the fifth clock pulse is
called Mod 5 counter or
Divide by 5 counter.
•The circuit diagram of
Mod 5 counter is shown in
the figure. This counter
contains three JKMS flip-
flop.
Clock Qc QB QA
Reset 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 0 0 0
6 0 0
1
Truth table:
•A 3 bit binary counter is normally counting
from 000 to 111. The actual output of a 3 bit
binary counter at the fifth clock pulse is 101.
•A two input NAND gate is used to make a
Mod 5 counter.
•The outputs of the first and third flip flops
(QA and QC) are connected to the input of the
give NAND gate, and its output is connected
to the RESET terminal of the counter,
•Hence the counter is reset at the fifth clock
pulse, which produces the output QC,QB,QA
as 000. It is called divide by 5th counter or
mod 5 counter.
Decade Counter
We take the modulo-16 asynchronous
counter and modified it with additional logic
gates it can be made to give a decade (divide-by-
10) counter output for use in standard decimal
counting and arithmetic circuits. Such counters
are generally referred to as Decade Counters.
• A decade counter requires resetting to zero
when the output count reaches the decimal
value of 10, ie. when DCBA = 1010 and to do
this we need to feed this condition back to the
reset input. A counter with a count sequence
from binary “0000” (BCD = “0”) through to
“1001” (BCD = “9”) is generally referred to as a
BCD binary-coded-decimal counter because its
ten state sequence is that of a BCD code but
binary decade counters are more common.
Clock
Count
Output bit Pattern
Decimal
Value
QD QC QB QA
1 0 0 0 0 0
2 0 0 0 1 1
3 0 0 1 0 2
4 0 0 1 1 3
5 0 1 0 0 4
6 0 1 0 1 5
7 0 1 1 0 6
8 0 1 1 1 7
9 1 0 0 0 8
10 1 0 0 1 9
11 Counter Resets its Outputs back to Zero
Decade Counter Truth Table

More Related Content

What's hot (20)

Counter And Sequencer Design- Student
Counter And Sequencer Design- StudentCounter And Sequencer Design- Student
Counter And Sequencer Design- Student
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
Counters
CountersCounters
Counters
 
Johnson counter
Johnson counterJohnson counter
Johnson counter
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
Divide by N clock
Divide by N clockDivide by N clock
Divide by N clock
 
digital Counter
digital Counterdigital Counter
digital Counter
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
Mod 10 synchronous counter updated
Mod 10 synchronous counter updatedMod 10 synchronous counter updated
Mod 10 synchronous counter updated
 
Counter
CounterCounter
Counter
 
Dee2034 chapter 5 counter
Dee2034 chapter 5 counterDee2034 chapter 5 counter
Dee2034 chapter 5 counter
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
Counters
CountersCounters
Counters
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Counters
Counters Counters
Counters
 
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
 
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
 
G. ripple counter
G. ripple counterG. ripple counter
G. ripple counter
 
15CS32 ADE Module 5
15CS32 ADE Module 515CS32 ADE Module 5
15CS32 ADE Module 5
 
Chapter 5 counter1
Chapter 5 counter1Chapter 5 counter1
Chapter 5 counter1
 

Similar to Counters r012

Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfTamiratDejene1
 
Counters_pptx.pptx
Counters_pptx.pptxCounters_pptx.pptx
Counters_pptx.pptxYeHtetAung35
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11wajanga
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to CountersISMT College
 
Lecture-32-33.pptx
Lecture-32-33.pptxLecture-32-33.pptx
Lecture-32-33.pptxAqeelAbbas94
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.pptRaziyaSultana30
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4RLJIT
 
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
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)Sairam Adithya
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)SUBHA SHREE
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Asif Iqbal
 

Similar to Counters r012 (20)

Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdf
 
Counters_pptx.pptx
Counters_pptx.pptxCounters_pptx.pptx
Counters_pptx.pptx
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
COUNTERS.pptx
COUNTERS.pptxCOUNTERS.pptx
COUNTERS.pptx
 
counters.ppt
counters.pptcounters.ppt
counters.ppt
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Lecture-32-33.pptx
Lecture-32-33.pptxLecture-32-33.pptx
Lecture-32-33.pptx
 
Ring counter
Ring counterRing counter
Ring counter
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
 
555 timer
555 timer555 timer
555 timer
 
555 timer vibrators
555 timer vibrators555 timer vibrators
555 timer vibrators
 
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
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
COUNTERS [Synchronous and Asynchronous]
COUNTERS [Synchronous and Asynchronous]COUNTERS [Synchronous and Asynchronous]
COUNTERS [Synchronous and Asynchronous]
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 

More from arunachalamr16

08 logic simplification
08 logic simplification08 logic simplification
08 logic simplificationarunachalamr16
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010arunachalamr16
 
Central processing unit and stack organization r013
Central processing unit and stack organization   r013Central processing unit and stack organization   r013
Central processing unit and stack organization r013arunachalamr16
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004arunachalamr16
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001aarunachalamr16
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theoremsarunachalamr16
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006arunachalamr16
 
1sand2scomplement r004
1sand2scomplement  r0041sand2scomplement  r004
1sand2scomplement r004arunachalamr16
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complementsarunachalamr16
 

More from arunachalamr16 (17)

Pipeline r014
Pipeline   r014Pipeline   r014
Pipeline r014
 
08 logic simplification
08 logic simplification08 logic simplification
08 logic simplification
 
Boolean algebra r009
Boolean algebra   r009Boolean algebra   r009
Boolean algebra r009
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
 
Central processing unit and stack organization r013
Central processing unit and stack organization   r013Central processing unit and stack organization   r013
Central processing unit and stack organization r013
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
 
Universal gates r008
Universal gates   r008Universal gates   r008
Universal gates r008
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
 
Logic gates r007
Logic gates   r007Logic gates   r007
Logic gates r007
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
 
Codes r005
Codes  r005Codes  r005
Codes r005
 
1sand2scomplement r004
1sand2scomplement  r0041sand2scomplement  r004
1sand2scomplement r004
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complements
 
Pill camera
Pill cameraPill camera
Pill camera
 

Recently uploaded

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 

Recently uploaded (20)

Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 

Counters r012

  • 2. 4 bit Ring Counter • The ring counter is a cascaded connection of flip flops, in which the output of last flip flop is connected to input of first flip flop. • In ring counter if the output of any stage is 1, then its reminder is 0. • The Ring counters transfers the same output throughout the circuit. • That means if the output of the first flip flop is 1, then this is transferred to its next stage i.e. 2nd flip flop. • By transferring the output to its next stage, the output of first flip flop becomes 0. And this process continues for all the stages of a ring counter. • If we use n flip flops in the ring counter, the ‘1’ is circulated for every n clock cycles. • The circuit diagram of the ring counter is shown
  • 3. Asynchronous or ripple counters • The logic diagram of a 2-bit ripple up counter is shown in figure. The toggle (T) flip-flop are being used. But we can use the JK flip-flop also with J and K connected permanently to logic 1. External clock is applied to the clock input of flip-flop A and QA output is applied to the clock input of the next flip-flop i.e. FF-B.
  • 4. Operation • Initially let both the FFs be in the reset state QBQA = 00 initially • After 1st negative clock edge As soon as the first negative clock edge is applied, FF-A will toggle and QA will be equal to 1. QA is connected to clock input of FF-B. Since QA has changed from 0 to 1, it is treated as the positive clock edge by FF-B. There is no change in QB because FF-B is a negative edge triggered FF. • QBQA = 01 after the first clock pulse. • After 2nd negative clock edge On the arrival of second negative clock edge, FF-A toggles again and QA = 0. The change in QA acts as a negative clock edge for FF- B. So it will also toggle, and QB will be 1. QBQA = 10 after the second clock pulse. •After 3rd negative clock edge On the arrival of 3rd negative clock edge, FF-A toggles again and QA become 1 from 0. Since this is a positive going change, FF-B does not respond to it and remains inactive. So QB does not change and continues to be equal to 1. QBQA = 11 after the third clock pulse. • After 4th negative clock edge On the arrival of 4th negative clock edge, FF-A toggles again and QA becomes 1 from 0. This negative change in QA acts as clock pulse for FF- B. Hence it toggles to change QB from 1 to 0. QBQA = 00 after the fourth clock pulse.
  • 5. Synchronous counters If the "clock" pulses are applied to all the flip-flops in a counter simultaneously, then such a counter is called as synchronous counter. 2-bit Synchronous up counter The JA and KA inputs of FF-A are tied to logic 1. So FF-A will work as a toggle flip-flop. The JB and KB inputs are connected to QA.
  • 6. Operation • Initially let both the FFs be in the reset state QBQA = 00 initially. • After 1st negative clock edge As soon as the first negative clock edge is applied, FF-A will toggle and QA will change from 0 to 1. But at the instant of application of negative clock edge, QA , JB = KB = 0. Hence FF-B will not change its state. So QB will remain 0. QBQA = 01 after the first clock pulse. • After 2nd negative clock edge On the arrival of second negative clock edge, FF-A toggles again and QA changes from 1 to 0. But at this instant QA was 1. So JB = KB= 1 and FF-B will toggle. Hence QB changes from 0 to 1. QBQA = 10 after the second clock pulse. After 3rd negative clock edge On application of the third falling clock edge, FF-A will toggle from 0 to 1 but there is no change of state for FF-B. QBQA = 11 after the third clock pulse. After 4th negative clock edge On application of the next clock pulse, QA will change from 1 to 0 as QB will also change from 1 to 0. QBQA = 00 after the fourth clock pulse.
  • 7. Synchronous 3-bit Up/Down Counter • The circuit is a simple 3-bit Up/Down synchronous counter using JK flip-flops configured to operate as toggle or T-type flip-flops giving a maximum count of zero (000) to seven (111) and back to zero again. • Then the 3-Bit counter advances upward in sequence (0,1,2,3,4,5,6,7) or downwards in reverse sequence (7,6,5,4,3,2,1,0). • Common chips available are the 74HC190 4-bit BCD decade Up/Down counter, the 74F569 is a fully synchronous Up/Down binary counter and the CMOS 4029 4-bit Synchronous Up/Down counter.
  • 9. Modulo N Counter (or) Divide by N counter: • A counter, whic is reset (makes the whole output as zeros) at the nth clock pulse is called 'mod n counter' or divide b nth counter'. • Logic gates that are connected externally, make to reset the counter at the nth clock pulse. • An extra NAND gate is generally used for making divide by n counters. • For this first we must know, which flip-flops output are actually is high (1) level in the nthclock pulse. • Then connect the outputs of that flip-flops to the input terminals of the NAND gate. • The output terminal of the NAND gate. •
  • 10. • The output terminal of the NAND gate is connected to the reset terminal of the counter. • Thus at the nth clock pulse, all inputs connected to the NAND gate are high, makes the output as 0, and to reset the counter. • After applying the next clock pulse the counter will start the count from its initial level. • The number of flip-flops needed, for this counter depends upon the 'n' value. • A three bit counter, counts upto 7 (=23-1). Similarly an 'n' bit counter, counts up to 2n-1 value.
  • 11. Mod 3 counter • We can design the MOD 3 counter using 2 FFs as 3 is less than 4. • We have to reset the counter after the count of 0,1,2 i.e. when output is 3 we reset the counter. • Hence we need to reset only when we have the output Q0= 1 & Q1=1. • Now firstly design MOD-4 counter using 2 FFs and then take NAND of Q0 & Q1 and feed the output to CLEAR of both FFs.
  • 12. Q1 Q0 OUTPUT of reset logic 0 0 1 0 1 1 1 0 1 1 1 0 Circuit Diagram Truth Table Karnaugh map
  • 13. Modulo 5 Counter •A counter which is reset at the fifth clock pulse is called Mod 5 counter or Divide by 5 counter. •The circuit diagram of Mod 5 counter is shown in the figure. This counter contains three JKMS flip- flop.
  • 14. Clock Qc QB QA Reset 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 0 0 0 6 0 0 1 Truth table: •A 3 bit binary counter is normally counting from 000 to 111. The actual output of a 3 bit binary counter at the fifth clock pulse is 101. •A two input NAND gate is used to make a Mod 5 counter. •The outputs of the first and third flip flops (QA and QC) are connected to the input of the give NAND gate, and its output is connected to the RESET terminal of the counter, •Hence the counter is reset at the fifth clock pulse, which produces the output QC,QB,QA as 000. It is called divide by 5th counter or mod 5 counter.
  • 15. Decade Counter We take the modulo-16 asynchronous counter and modified it with additional logic gates it can be made to give a decade (divide-by- 10) counter output for use in standard decimal counting and arithmetic circuits. Such counters are generally referred to as Decade Counters.
  • 16. • A decade counter requires resetting to zero when the output count reaches the decimal value of 10, ie. when DCBA = 1010 and to do this we need to feed this condition back to the reset input. A counter with a count sequence from binary “0000” (BCD = “0”) through to “1001” (BCD = “9”) is generally referred to as a BCD binary-coded-decimal counter because its ten state sequence is that of a BCD code but binary decade counters are more common.
  • 17.
  • 18. Clock Count Output bit Pattern Decimal Value QD QC QB QA 1 0 0 0 0 0 2 0 0 0 1 1 3 0 0 1 0 2 4 0 0 1 1 3 5 0 1 0 0 4 6 0 1 0 1 5 7 0 1 1 0 6 8 0 1 1 1 7 9 1 0 0 0 8 10 1 0 0 1 9 11 Counter Resets its Outputs back to Zero Decade Counter Truth Table