SlideShare a Scribd company logo
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

decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
Unsa Shakir
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
Jaimin@prt.ltd.
 
Digital Registers & Counters
Digital Registers & CountersDigital Registers & Counters
Digital Registers & Counters
university of education,Lahore
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
Md Sadequl Islam
 
Ring counter
Ring counterRing counter
Ring counter
Ghufran Hasan
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
Gaditek
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
Priyank Soni
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructionsMahesh Kumar Attri
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
Nitin Ahire
 
Counters
CountersCounters
Counters
Abhilash Nair
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
Ideal Eyes Business College
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous Counters
Bony Yamin
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODE
kishor pokar
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
Vinit Raut
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
techbed
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
SainiNageshSir
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
elfeds916
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
Sarah Sue Calbio
 
Numbering System Base Conversion
Numbering System Base ConversionNumbering System Base Conversion
Numbering System Base Conversion
The University of Lahore
 
Chapter11 addressing
Chapter11 addressingChapter11 addressing
Chapter11 addressing
Christian James Mingoy
 

What's hot (20)

decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Design half ,full Adder and Subtractor
Design half ,full Adder and SubtractorDesign half ,full Adder and Subtractor
Design half ,full Adder and Subtractor
 
Digital Registers & Counters
Digital Registers & CountersDigital Registers & Counters
Digital Registers & Counters
 
Flip-Flop || Digital Electronics
Flip-Flop || Digital ElectronicsFlip-Flop || Digital Electronics
Flip-Flop || Digital Electronics
 
Ring counter
Ring counterRing counter
Ring counter
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 
Jk flip flop
Jk flip flopJk flip flop
Jk flip flop
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
 
Interfacing of io device to 8085
Interfacing of io device to 8085Interfacing of io device to 8085
Interfacing of io device to 8085
 
Counters
CountersCounters
Counters
 
BOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATEBOOLEAN ALGEBRA & LOGIC GATE
BOOLEAN ALGEBRA & LOGIC GATE
 
Counters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous CountersCounters, Synchronous & Asynchronous Counters
Counters, Synchronous & Asynchronous Counters
 
Methods of solving ODE
Methods of solving ODEMethods of solving ODE
Methods of solving ODE
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
1327 Addressing Modes Of 8086
1327 Addressing Modes Of 80861327 Addressing Modes Of 8086
1327 Addressing Modes Of 8086
 
BOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.pptBOOLEAN ALGEBRA.ppt
BOOLEAN ALGEBRA.ppt
 
Digital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebraDigital systems logicgates-booleanalgebra
Digital systems logicgates-booleanalgebra
 
Sequential logic circuits flip-flop pt 1
Sequential logic circuits   flip-flop pt 1Sequential logic circuits   flip-flop pt 1
Sequential logic circuits flip-flop pt 1
 
Numbering System Base Conversion
Numbering System Base ConversionNumbering System Base Conversion
Numbering System Base Conversion
 
Chapter11 addressing
Chapter11 addressingChapter11 addressing
Chapter11 addressing
 

Similar to Counters r012

Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdf
TamiratDejene1
 
Counters_pptx.pptx
Counters_pptx.pptxCounters_pptx.pptx
Counters_pptx.pptx
YeHtetAung35
 
Counters
CountersCounters
Counters
Ketaki_Pattani
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
wajanga
 
Counters
CountersCounters
Counters
Randaqra
 
COUNTERS.pptx
COUNTERS.pptxCOUNTERS.pptx
COUNTERS.pptx
SaifURehmanSidhu
 
counters.ppt
counters.pptcounters.ppt
counters.ppt
NarendrakumarAnnadur
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
GargiKhanna1
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
Danial Mirza
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
ssuser022fec
 
digital Counter
digital Counterdigital Counter
digital Counter
shamshad alam
 
Introduction to Counters
Introduction to CountersIntroduction to Counters
Introduction to Counters
ISMT College
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
DrSonali Vyas
 
Lecture-32-33.pptx
Lecture-32-33.pptxLecture-32-33.pptx
Lecture-32-33.pptx
AqeelAbbas94
 
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav RaikarDigital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
GauravRaikar3
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
Jainee Solanki
 
Digital Logic Counter.ppt
Digital Logic Counter.pptDigital Logic Counter.ppt
Digital Logic Counter.ppt
RaziyaSultana30
 
15CS32 ADE Module 4
15CS32 ADE Module 415CS32 ADE Module 4
15CS32 ADE Module 4
RLJIT
 
555 timer
555 timer555 timer
555 timer
Deepak Kumar
 
555 timer vibrators
555 timer vibrators555 timer vibrators
555 timer vibrators
AhmedHassan1656
 

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
 
Counters
CountersCounters
Counters
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
Counters
CountersCounters
Counters
 
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
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
 
digital Counter
digital Counterdigital Counter
digital Counter
 
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
 
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav RaikarDigital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
Digital clock (mod counters)using DSCH (DIGITAL SCHEMATIC) by Gaurav Raikar
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary 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
 

More from arunachalamr16

Pipeline r014
Pipeline   r014Pipeline   r014
Pipeline r014
arunachalamr16
 
Registers r011
Registers   r011Registers   r011
Registers r011
arunachalamr16
 
08 logic simplification
08 logic simplification08 logic simplification
08 logic simplification
arunachalamr16
 
Boolean algebra r009
Boolean algebra   r009Boolean algebra   r009
Boolean algebra r009
arunachalamr16
 
Boolean variables r010
Boolean variables   r010Boolean variables   r010
Boolean variables r010
arunachalamr16
 
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
arunachalamr16
 
Combinational circuits r011
Combinational circuits   r011Combinational circuits   r011
Combinational circuits r011
arunachalamr16
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
arunachalamr16
 
Code conversion r006
Code conversion r006Code conversion r006
Code conversion r006
arunachalamr16
 
Binary coded decimal r004
Binary coded decimal   r004Binary coded decimal   r004
Binary coded decimal r004
arunachalamr16
 
Digital fundamendals r001a
Digital fundamendals r001aDigital fundamendals r001a
Digital fundamendals r001a
arunachalamr16
 
Universal gates r008
Universal gates   r008Universal gates   r008
Universal gates r008
arunachalamr16
 
Number systems r002
Number systems  r002Number systems  r002
Number systems r002
arunachalamr16
 
Logic gates r007
Logic gates   r007Logic gates   r007
Logic gates r007
arunachalamr16
 
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
arunachalamr16
 
Error detection and correction codes r006
Error detection and correction codes   r006Error detection and correction codes   r006
Error detection and correction codes r006
arunachalamr16
 
Codes r005
Codes  r005Codes  r005
Codes r005
arunachalamr16
 
1sand2scomplement r004
1sand2scomplement  r0041sand2scomplement  r004
1sand2scomplement r004
arunachalamr16
 
1’s and 2’s complements
1’s and 2’s complements1’s and 2’s complements
1’s and 2’s complements
arunachalamr16
 
Pill camera
Pill cameraPill camera
Pill camera
arunachalamr16
 

More from arunachalamr16 (20)

Pipeline r014
Pipeline   r014Pipeline   r014
Pipeline r014
 
Registers r011
Registers   r011Registers   r011
Registers r011
 
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
 
Combinational circuits r011
Combinational circuits   r011Combinational circuits   r011
Combinational circuits r011
 
Flipflop r012
Flipflop   r012Flipflop   r012
Flipflop r012
 
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

Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Po-Chuan Chen
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 

Recently uploaded (20)

Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 

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