SlideShare a Scribd company logo
1 of 51
Top School in Delhi NCR 
By: 
School.edhole.com
5-1-2 Synchronous counters
Learning Objectives: 
At the end of this topic you will be able to: 
•draw a block diagram showing how D-type flip-flops can be connected to 
form a synchronous counter to meet a given specification; 
•explain how simultaneous clocking of D-type flip-flops overcomes the 
limitation of ripple counters at high counting speed; 
•draw the state diagram for a synchronous counter given a system 
specification; 
•explain the significance and cause of stuck states, and describe how they 
can be avoided by directing unused states back into the main sequence; 
•manipulate unused (don’t care) states to produce simpler solutions; 
•analyse and design a synchronous counter (up to 3 bits) to obtain the state 
diagram for the sequence it produces.
Synchronous counters 
Synchronous counters differ from ripple counters in that: 
•they can be designed to produce any sequence of output signals (and so 
are also known as sequence generators), whereas ripple counters can 
count only either up or down in binary; 
•the clock inputs of all stages of the counter are connected together and so 
receive clock pulses at exactly the same time (and that is why they are 
called synchronous!); 
•logic gates are used to generate appropriate signals at the data inputs 
of each stage.
In ripple counters, the clock signals move through the system, stage by 
stage, and so it takes time for the last stage to react to a pulse received 
at the first stage. This causes inaccuracy when the counter is counting at 
high speed. There is no such problem with the synchronous counter, 
because all stages receive the clock signal at the same time and so react 
at the same time. 
The next diagram shows this basic structure for a 3-bit synchronous counter: 
The set and reset inputs of the D-types have been omitted to improve 
the clarity of the diagram.
System specification: 
The behaviour of a synchronous counter is usually specified in either a 
truth table, or in a state diagram.
For example, suppose that you have three LEDs, A, B and C. You want to 
start off with all of them turned off and then turn on only one at a time 
in a repeating sequence. 
Visually, the sequence looks like: 
Here is the same specification 
expressed in the form of a truth 
table. 
Finally, here is the same 
specification shown as a state 
diagram (almost!)
In this case we have assumed that a LED is on when a logic 1 signal is 
applied, and off when logic 0 is applied. 
Why ‘almost’- because we need to worry about unused states! 
Unused states: 
The synchronous counter will drive the three LEDs in the correct 
sequence. It will have three digital outputs, which means that there are 
eight (= 23) possible combinations of these outputs. We are using only 
four of these – 000, 001, 010 and 100. This means that there are four 
unused states – 011, 101, 110 and 111.
The problem is that the system can output any of the eight possible 
combinations when it is first switched on. 
We have to design the counter so that even if, on power-up, it outputs an 
unused state, it will then progress onto the required sequence. 
We complete the state diagram by showing how the system will deal with 
the unused states. One possible solution is shown below:
In this case, if the system powers up with all three LEDs switched on (the 111 
state, which we have called state S7,) then it should progress into state S0, 
where all LEDs are off, and then continue to go through the required 
sequence, called the main sequence. 
The same thing will happen if it powers up in state S5 or S6. If the counter 
starts in state S4, it should then progress through state S6 to the main 
sequence. 
The unused states can be connected anywhere as long as they lead into the 
main sequence. The reason for designing the system as shown above will 
become clearer when we look at the Boolean algebra for the solution.
We can complete the truth table to show the full design:
Notice that the table has two main columns – the current state of the 
system, and the next state. The headings DC, DB and DA take into 
account that we are going to use D-type flip-flops to build the 
synchronous counter. 
To complete the design of the system, we determine what logic gates 
are needed, with what inputs, to supply the correct signals to the data 
inputs of the D-types. This is done either by inspection, or by use of 
Karnaugh maps, 
In this case, the Karnaugh maps 
are: 
for DC:
for DB: 
for DA:
The Boolean relationships between inputs and outputs are then: 
Finally, we can now draw the circuit diagram for this synchronous counter. 
However, there are several ways to do this! It could look like:
The next version is better, because it uses fewer logic gates ( = fewer ICs = 
cheaper and more reliable,) by generating the C signal from the Q output:
Stuck states: 
Stuck states are unused states that do not progress into the main 
sequence. 
Careless design of a system can lead to a situation where, on power-up, 
the system locks in an unused state, and never progresses to the main 
sequence. 
The next state diagram shows the same main sequence that was used 
earlier but with a different, and deadly, arrangement of unused states:
Now, when you switch on the system, there is a chance that it starts 
in either state S4 or S6. If so, as the clock inputs on the three D-types 
receive pulses, the outputs simply alternate between the 011 
and 110 states. They never reach the main sequence. These are known 
as stuck states. Remember, these are only a problem on power-up. 
Once the system reaches the main sequence, it continues to loop 
around the series of outputs in that main sequence.
Exercise 1 (Solutions are given at the end of this topic) 
1.Three LEDs are switched on and off in the following sequence: 
Draw a state diagram for this system, taking care to avoid stuck 
states.
2.Here is the state diagram for a synchronous counter. 
Complete the following table for this counter:
Solutions to Exercise 1: 
This is not the only correct solution. The main sequence must be that 
shown in the diagram, but the unused states, S6 and S7, can be 
connected in any arrangement that leads to the main sequence.
Exercise 2: 
Notice that within the main sequence, the ‘Next state’ in one row 
becomes the ‘Current state’ in the next row. This is not true for the 
unused states.
Designing a synchronous counter: 
In an industrial process, a pump is used to fill a drum. Once it is partly full, 
a motor rotates it to mix the contents, and continues to do so after the 
pump is switched off. Then the motor is turned off, and a valve opens to 
empty the drum. Finally, the system switches off all devices and the 
sequence is repeated. (This example may not be very realistic, but it makes 
the point that synchronous counters can control a variety of output devices, 
through suitable interfaces.) 
We can use a synchronous counter to control this process, providing all 
the steps last for the same amount of time (which will be the period of 
the clock signal.) To design the counter, we first of all turn the 
description into a truth table to show the main sequence. We assume 
that a logic 1 signal turns a device on, and a logic 0 turns it off. 
Make sure that you are happy that the contents of the table match the 
description above
Next, we work what logic gates are needed by looking at the Boolean 
relationships between outputs and inputs. Once we decide what these 
are, then we can decide on what to do with the three unused states. 
These are also called ‘don’t care’ states, because it doesn’t matter 
where they go (as long as they lead into the main sequence.)
1. Look at the DB column. It is identical to the C column. We will go for 
this straightforward relationship: DB = C
We obtained these relationships by inspection. It is always worth checking 
them using Karnaugh maps. 
Now that we have the Boolean expressions, we can return to the question of 
the unused states. These Boolean expressions will govern what happens to 
the unused states, as well as the main sequence. The unused states are: 
011, 101 and 111. 
We apply the Boolean expressions to these to see what state each leads 
into. The next state is 
worked out using 
the boolean 
expressions from 
above. These must 
be part of the main 
sequence or lead 
into the main 
sequence or the 
counter will 
become stuck and 
won’t progress.
Be clear about what we have just done! We first decided on the set of logic 
gates needed to produce the main sequence. We have just looked at what 
these gates will do when the system powers up into an unused state. It is vital 
that these lead into the main sequence, are not stuck states, in other words. 
The full truth table for the control system is:
It is vital that these unused states do not form stuck states. To check 
whether this will happen, we now use this table to draw the state diagram 
for this control system. 
As you can see, the unused states all lead into the main sequence. If 
the control system powered up in an unused state, it would progress 
onto the main sequence in the next clock cycle.
(A different question - is it desirable that the main sequence can start at any 
state? That’s not a problem that concerns us at the moment! 
We were using this example to show that synchronous counters can 
control devices other than simply LEDs! 
However, to ensure that the sequence always starts in the 000 state, 
the reset pins of the three D-types can be linked to the ‘Start Process’ power 
switch.) 
The circuit diagram for this solution is:
Exercise 2: (Solutions are given at the end of this topic) 
1.Back to controlling LEDs! 
Design a synchronous counter that will produce the following ‘light chaser’ 
effect: 
Your final design should include a truth table and state diagram showing 
both main sequence and unused states.
2. Design a synchronous counter that will count up in binary from 000 
to 100, and then, on the next clock pulse, reset to 000. 
Again, your final design should include a truth table and state 
diagram showing both main sequence and unused states.
A Analysing a synchronous counter: 
Here is the circuit diagram for a synchronous counter. The task is to 
find out what sequence it produces.
The first step is to deduce the Boolean expressions for the D-type data 
inputs. By inspecting the circuit diagram, these are seen to be: 
The next step is to complete the truth table for this system. To do this, we 
use these Boolean expressions to work out what the next state will be for 
each of the possible states. It does not matter which state we start with.
You can see that the first four states make up a sequence, presumably the 
main sequence. States 4, 5, 6 and 7 are, we assume, the unused states. 
Now use the truth table to draw the state diagram for this system: 
You should be able to spot a major problem with the unused states. Only 
one, S5, leads into the main sequence. If the system powers up in either S4, 
S6 or S7, then it can never progress into the main sequence. These are stuck 
states!
Exercise 3: 
Analyse the sequence produced by the following synchronous counter by: 
· • obtaining the Boolean expressions for the inputs in terms of the 
outputs; 
· • completing the truth table; 
• drawing the state diagram, including the unused states.
Boolean expressions: 
Truth table: 
Hint – the first state (100) is part of the main sequence. You should 
find that there are four states altogether in the main sequence.
State diagram:
Solution to Exercise 3. 
Exercise 3: 
Boolean expressions:
Top schools in delhi ncr

More Related Content

What's hot

Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Charlton Inao
 
The Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space ApproachThe Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space ApproachYang Hong
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record Yuvraj Singh
 
Mom slideshow
Mom slideshowMom slideshow
Mom slideshowashusuzie
 
Control Systems Lab 2
Control Systems Lab 2Control Systems Lab 2
Control Systems Lab 2Julia London
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3mkazree
 
Controllability and observability
Controllability and observabilityControllability and observability
Controllability and observabilityjawaharramaya
 
Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsDivyanshu Rai
 
Modeling of mechanical_systems
Modeling of mechanical_systemsModeling of mechanical_systems
Modeling of mechanical_systemsJulian De Marcos
 
Lecture 3 ME 176 2 Mathematical Modeling
Lecture 3 ME 176 2 Mathematical ModelingLecture 3 ME 176 2 Mathematical Modeling
Lecture 3 ME 176 2 Mathematical ModelingLeonides De Ocampo
 
Transfer Function Cse ppt
Transfer Function Cse pptTransfer Function Cse ppt
Transfer Function Cse pptsanjaytron
 
State space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsState space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsShilpa Shukla
 
Computational electromagnetics
Computational electromagneticsComputational electromagnetics
Computational electromagneticsAwaab Fakih
 

What's hot (19)

Control systems
Control systemsControl systems
Control systems
 
Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05Wk 6 part 2 non linearites and non linearization april 05
Wk 6 part 2 non linearites and non linearization april 05
 
The Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space ApproachThe Controller Design For Linear System: A State Space Approach
The Controller Design For Linear System: A State Space Approach
 
Control system Lab record
Control system Lab record Control system Lab record
Control system Lab record
 
solver (1)
solver (1)solver (1)
solver (1)
 
Linearization
LinearizationLinearization
Linearization
 
Cs handouts(r18)
Cs handouts(r18)Cs handouts(r18)
Cs handouts(r18)
 
State space
State spaceState space
State space
 
Mom slideshow
Mom slideshowMom slideshow
Mom slideshow
 
Control Systems Lab 2
Control Systems Lab 2Control Systems Lab 2
Control Systems Lab 2
 
Meeting w6 chapter 2 part 3
Meeting w6   chapter 2 part 3Meeting w6   chapter 2 part 3
Meeting w6 chapter 2 part 3
 
Controllability and observability
Controllability and observabilityControllability and observability
Controllability and observability
 
Mathematical Modelling of Control Systems
Mathematical Modelling of Control SystemsMathematical Modelling of Control Systems
Mathematical Modelling of Control Systems
 
Modeling of mechanical_systems
Modeling of mechanical_systemsModeling of mechanical_systems
Modeling of mechanical_systems
 
Lecture 3 ME 176 2 Mathematical Modeling
Lecture 3 ME 176 2 Mathematical ModelingLecture 3 ME 176 2 Mathematical Modeling
Lecture 3 ME 176 2 Mathematical Modeling
 
Transfer Function Cse ppt
Transfer Function Cse pptTransfer Function Cse ppt
Transfer Function Cse ppt
 
Control chap2
Control chap2Control chap2
Control chap2
 
State space analysis, eign values and eign vectors
State space analysis, eign values and eign vectorsState space analysis, eign values and eign vectors
State space analysis, eign values and eign vectors
 
Computational electromagnetics
Computational electromagneticsComputational electromagnetics
Computational electromagnetics
 

Similar to Top schools in delhi ncr

Please show me how to do every part of this. Also could you show me .pdf
Please show me how to do every part of this. Also could you show me .pdfPlease show me how to do every part of this. Also could you show me .pdf
Please show me how to do every part of this. Also could you show me .pdfsupport58
 
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docxhallettfaustina
 
UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN Dr.YNM
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentIsham Rashik
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsAmr E. Mohamed
 
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfPreparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfrdjo
 
Design System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential CircuitsDesign System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential CircuitsIndira Priyadarshini
 
Counter design.pdf
Counter design.pdfCounter design.pdf
Counter design.pdfrdjo
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond Brunkow
 
-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docxjanettjz6sfehrle
 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsSohaibUllah5
 
The describing function
The describing functionThe describing function
The describing functionkatamthreveni
 
Lecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxLecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxTasnimAhmad14
 
Instrumentation and measurements
Instrumentation and measurementsInstrumentation and measurements
Instrumentation and measurementsTuba Tanveer
 
Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilabsundar79
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilabScilab
 

Similar to Top schools in delhi ncr (20)

Please show me how to do every part of this. Also could you show me .pdf
Please show me how to do every part of this. Also could you show me .pdfPlease show me how to do every part of this. Also could you show me .pdf
Please show me how to do every part of this. Also could you show me .pdf
 
493 297
493 297493 297
493 297
 
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx     Ch 2 Ladder Basics 1 Chapter 2  Ladder Basics  .docx
Ch 2 Ladder Basics 1 Chapter 2 Ladder Basics .docx
 
UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN UNIT-I DIGITAL SYSTEM DESIGN
UNIT-I DIGITAL SYSTEM DESIGN
 
Linear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller AssignmentLinear Control Hard-Disk Read/Write Controller Assignment
Linear Control Hard-Disk Read/Write Controller Assignment
 
Chapter 2 ladder
Chapter 2 ladderChapter 2 ladder
Chapter 2 ladder
 
Modern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of SystemsModern Control - Lec 02 - Mathematical Modeling of Systems
Modern Control - Lec 02 - Mathematical Modeling of Systems
 
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdfPreparatory_questions_final_exam_DigitalElectronics1 (1).pdf
Preparatory_questions_final_exam_DigitalElectronics1 (1).pdf
 
Design System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential CircuitsDesign System Design-ASM and Asynchronous Sequential Circuits
Design System Design-ASM and Asynchronous Sequential Circuits
 
Counter design.pdf
Counter design.pdfCounter design.pdf
Counter design.pdf
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx-10 Points- Description In this assignment you will translate a system.docx
-10 Points- Description In this assignment you will translate a system.docx
 
Linear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop SystemsLinear control system Open loop & Close loop Systems
Linear control system Open loop & Close loop Systems
 
The describing function
The describing functionThe describing function
The describing function
 
Lecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptxLecture_03_EEE 363_Control System.pptx
Lecture_03_EEE 363_Control System.pptx
 
Instrumentation and measurements
Instrumentation and measurementsInstrumentation and measurements
Instrumentation and measurements
 
Ijecet 06 07_005
Ijecet 06 07_005Ijecet 06 07_005
Ijecet 06 07_005
 
Control system-toolbox-in-scilab
Control system-toolbox-in-scilabControl system-toolbox-in-scilab
Control system-toolbox-in-scilab
 
Introduction to Control systems in scilab
Introduction to Control systems in scilabIntroduction to Control systems in scilab
Introduction to Control systems in scilab
 
DS_LEC_3.pptx
DS_LEC_3.pptxDS_LEC_3.pptx
DS_LEC_3.pptx
 

More from Edhole.com

Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarkaEdhole.com
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarkaEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhiEdhole.com
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbaiEdhole.com
 
Website development company surat
Website development company suratWebsite development company surat
Website development company suratEdhole.com
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in suratEdhole.com
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in indiaEdhole.com
 

More from Edhole.com (20)

Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website dsigning company in india
Website dsigning company in indiaWebsite dsigning company in india
Website dsigning company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Ca in patna
Ca in patnaCa in patna
Ca in patna
 
Chartered accountant in dwarka
Chartered accountant in dwarkaChartered accountant in dwarka
Chartered accountant in dwarka
 
Ca firm in dwarka
Ca firm in dwarkaCa firm in dwarka
Ca firm in dwarka
 
Ca in dwarka
Ca in dwarkaCa in dwarka
Ca in dwarka
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website designing company in surat
Website designing company in suratWebsite designing company in surat
Website designing company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 
Website designing company in delhi
Website designing company in delhiWebsite designing company in delhi
Website designing company in delhi
 
Website designing company in mumbai
Website designing company in mumbaiWebsite designing company in mumbai
Website designing company in mumbai
 
Website development company surat
Website development company suratWebsite development company surat
Website development company surat
 
Website desinging company in surat
Website desinging company in suratWebsite desinging company in surat
Website desinging company in surat
 
Website designing company in india
Website designing company in indiaWebsite designing company in india
Website designing company in india
 

Recently uploaded

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
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
 
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
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
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
 
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
 

Recently uploaded (20)

“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
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
 
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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
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
 
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
 
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
 

Top schools in delhi ncr

  • 1. Top School in Delhi NCR By: School.edhole.com
  • 3. Learning Objectives: At the end of this topic you will be able to: •draw a block diagram showing how D-type flip-flops can be connected to form a synchronous counter to meet a given specification; •explain how simultaneous clocking of D-type flip-flops overcomes the limitation of ripple counters at high counting speed; •draw the state diagram for a synchronous counter given a system specification; •explain the significance and cause of stuck states, and describe how they can be avoided by directing unused states back into the main sequence; •manipulate unused (don’t care) states to produce simpler solutions; •analyse and design a synchronous counter (up to 3 bits) to obtain the state diagram for the sequence it produces.
  • 4. Synchronous counters Synchronous counters differ from ripple counters in that: •they can be designed to produce any sequence of output signals (and so are also known as sequence generators), whereas ripple counters can count only either up or down in binary; •the clock inputs of all stages of the counter are connected together and so receive clock pulses at exactly the same time (and that is why they are called synchronous!); •logic gates are used to generate appropriate signals at the data inputs of each stage.
  • 5. In ripple counters, the clock signals move through the system, stage by stage, and so it takes time for the last stage to react to a pulse received at the first stage. This causes inaccuracy when the counter is counting at high speed. There is no such problem with the synchronous counter, because all stages receive the clock signal at the same time and so react at the same time. The next diagram shows this basic structure for a 3-bit synchronous counter: The set and reset inputs of the D-types have been omitted to improve the clarity of the diagram.
  • 6. System specification: The behaviour of a synchronous counter is usually specified in either a truth table, or in a state diagram.
  • 7. For example, suppose that you have three LEDs, A, B and C. You want to start off with all of them turned off and then turn on only one at a time in a repeating sequence. Visually, the sequence looks like: Here is the same specification expressed in the form of a truth table. Finally, here is the same specification shown as a state diagram (almost!)
  • 8. In this case we have assumed that a LED is on when a logic 1 signal is applied, and off when logic 0 is applied. Why ‘almost’- because we need to worry about unused states! Unused states: The synchronous counter will drive the three LEDs in the correct sequence. It will have three digital outputs, which means that there are eight (= 23) possible combinations of these outputs. We are using only four of these – 000, 001, 010 and 100. This means that there are four unused states – 011, 101, 110 and 111.
  • 9. The problem is that the system can output any of the eight possible combinations when it is first switched on. We have to design the counter so that even if, on power-up, it outputs an unused state, it will then progress onto the required sequence. We complete the state diagram by showing how the system will deal with the unused states. One possible solution is shown below:
  • 10. In this case, if the system powers up with all three LEDs switched on (the 111 state, which we have called state S7,) then it should progress into state S0, where all LEDs are off, and then continue to go through the required sequence, called the main sequence. The same thing will happen if it powers up in state S5 or S6. If the counter starts in state S4, it should then progress through state S6 to the main sequence. The unused states can be connected anywhere as long as they lead into the main sequence. The reason for designing the system as shown above will become clearer when we look at the Boolean algebra for the solution.
  • 11. We can complete the truth table to show the full design:
  • 12. Notice that the table has two main columns – the current state of the system, and the next state. The headings DC, DB and DA take into account that we are going to use D-type flip-flops to build the synchronous counter. To complete the design of the system, we determine what logic gates are needed, with what inputs, to supply the correct signals to the data inputs of the D-types. This is done either by inspection, or by use of Karnaugh maps, In this case, the Karnaugh maps are: for DC:
  • 13. for DB: for DA:
  • 14. The Boolean relationships between inputs and outputs are then: Finally, we can now draw the circuit diagram for this synchronous counter. However, there are several ways to do this! It could look like:
  • 15. The next version is better, because it uses fewer logic gates ( = fewer ICs = cheaper and more reliable,) by generating the C signal from the Q output:
  • 16. Stuck states: Stuck states are unused states that do not progress into the main sequence. Careless design of a system can lead to a situation where, on power-up, the system locks in an unused state, and never progresses to the main sequence. The next state diagram shows the same main sequence that was used earlier but with a different, and deadly, arrangement of unused states:
  • 17. Now, when you switch on the system, there is a chance that it starts in either state S4 or S6. If so, as the clock inputs on the three D-types receive pulses, the outputs simply alternate between the 011 and 110 states. They never reach the main sequence. These are known as stuck states. Remember, these are only a problem on power-up. Once the system reaches the main sequence, it continues to loop around the series of outputs in that main sequence.
  • 18. Exercise 1 (Solutions are given at the end of this topic) 1.Three LEDs are switched on and off in the following sequence: Draw a state diagram for this system, taking care to avoid stuck states.
  • 19. 2.Here is the state diagram for a synchronous counter. Complete the following table for this counter:
  • 20. Solutions to Exercise 1: This is not the only correct solution. The main sequence must be that shown in the diagram, but the unused states, S6 and S7, can be connected in any arrangement that leads to the main sequence.
  • 21. Exercise 2: Notice that within the main sequence, the ‘Next state’ in one row becomes the ‘Current state’ in the next row. This is not true for the unused states.
  • 22. Designing a synchronous counter: In an industrial process, a pump is used to fill a drum. Once it is partly full, a motor rotates it to mix the contents, and continues to do so after the pump is switched off. Then the motor is turned off, and a valve opens to empty the drum. Finally, the system switches off all devices and the sequence is repeated. (This example may not be very realistic, but it makes the point that synchronous counters can control a variety of output devices, through suitable interfaces.) We can use a synchronous counter to control this process, providing all the steps last for the same amount of time (which will be the period of the clock signal.) To design the counter, we first of all turn the description into a truth table to show the main sequence. We assume that a logic 1 signal turns a device on, and a logic 0 turns it off. Make sure that you are happy that the contents of the table match the description above
  • 23. Next, we work what logic gates are needed by looking at the Boolean relationships between outputs and inputs. Once we decide what these are, then we can decide on what to do with the three unused states. These are also called ‘don’t care’ states, because it doesn’t matter where they go (as long as they lead into the main sequence.)
  • 24. 1. Look at the DB column. It is identical to the C column. We will go for this straightforward relationship: DB = C
  • 25. We obtained these relationships by inspection. It is always worth checking them using Karnaugh maps. Now that we have the Boolean expressions, we can return to the question of the unused states. These Boolean expressions will govern what happens to the unused states, as well as the main sequence. The unused states are: 011, 101 and 111. We apply the Boolean expressions to these to see what state each leads into. The next state is worked out using the boolean expressions from above. These must be part of the main sequence or lead into the main sequence or the counter will become stuck and won’t progress.
  • 26. Be clear about what we have just done! We first decided on the set of logic gates needed to produce the main sequence. We have just looked at what these gates will do when the system powers up into an unused state. It is vital that these lead into the main sequence, are not stuck states, in other words. The full truth table for the control system is:
  • 27. It is vital that these unused states do not form stuck states. To check whether this will happen, we now use this table to draw the state diagram for this control system. As you can see, the unused states all lead into the main sequence. If the control system powered up in an unused state, it would progress onto the main sequence in the next clock cycle.
  • 28. (A different question - is it desirable that the main sequence can start at any state? That’s not a problem that concerns us at the moment! We were using this example to show that synchronous counters can control devices other than simply LEDs! However, to ensure that the sequence always starts in the 000 state, the reset pins of the three D-types can be linked to the ‘Start Process’ power switch.) The circuit diagram for this solution is:
  • 29. Exercise 2: (Solutions are given at the end of this topic) 1.Back to controlling LEDs! Design a synchronous counter that will produce the following ‘light chaser’ effect: Your final design should include a truth table and state diagram showing both main sequence and unused states.
  • 30. 2. Design a synchronous counter that will count up in binary from 000 to 100, and then, on the next clock pulse, reset to 000. Again, your final design should include a truth table and state diagram showing both main sequence and unused states.
  • 31. A Analysing a synchronous counter: Here is the circuit diagram for a synchronous counter. The task is to find out what sequence it produces.
  • 32. The first step is to deduce the Boolean expressions for the D-type data inputs. By inspecting the circuit diagram, these are seen to be: The next step is to complete the truth table for this system. To do this, we use these Boolean expressions to work out what the next state will be for each of the possible states. It does not matter which state we start with.
  • 33. You can see that the first four states make up a sequence, presumably the main sequence. States 4, 5, 6 and 7 are, we assume, the unused states. Now use the truth table to draw the state diagram for this system: You should be able to spot a major problem with the unused states. Only one, S5, leads into the main sequence. If the system powers up in either S4, S6 or S7, then it can never progress into the main sequence. These are stuck states!
  • 34. Exercise 3: Analyse the sequence produced by the following synchronous counter by: · • obtaining the Boolean expressions for the inputs in terms of the outputs; · • completing the truth table; • drawing the state diagram, including the unused states.
  • 35. Boolean expressions: Truth table: Hint – the first state (100) is part of the main sequence. You should find that there are four states altogether in the main sequence.
  • 37.
  • 38.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48.
  • 49.
  • 50. Solution to Exercise 3. Exercise 3: Boolean expressions: