SlideShare a Scribd company logo
1 of 54
Chapter 3:
Sequential Logic Design
(Part 2.1)
EET107/3
DIGITAL ELECTRONICS 1
3.2 COUNTER
INTRODUCTION
 A counter – a group of flip-flops connected together to
perform counting operations.
 The number of flip-flops used and the way in which they are
connected determine the number of states (modulus).
 Two broad categories according to the way they are clocked:
Asynchronous counter
Synchronous counter
SYNCHRONOUS COUNTER
A 2-bit synchronous binary counter:
SYNCHRONOUS COUNTER
Timing details for the 2-bit synchronous counter operation (the
propagation delays of both flip-flops are assumed to be equal):
SYNCHRONOUS COUNTER
The Binary State Sequence:
CLOCK
PULSE
Q1 Q0
Initially 0 0
1 0 1
2 1 0
3 1 1
4 (recycles) 0 0
SYNCHRONOUS COUNTER
A 3-bit synchronous binary counter:
SYNCHRONOUS COUNTER
The Binary State Sequence for a 3-bit Binary Counter:
CLOCK PULSE Q2 Q1 Q0
Initially 0 0 0
1 0 0 1
2 0 1 0
3 0 1 1
4 1 0 0
5 1 0 1
6 1 1 0
7 1 1 1
8 (recycles) 0 0 0
SYNCHRONOUS COUNTER
A 4-bit synchronous binary counter and timing diagram. Points where the AND
gate outputs are HIGH are indicated by the shaded areas.
SYNCHRONOUS COUNTER
A 4-Bit Synchronous BCD Decade Counter:
SYNCHRONOUS COUNTER
The Binary State Sequence for BCD Decade Counter:
CLOCK PULSE Q3 Q2 Q1 Q0
Initially 0 0 0 0
1 0 0 0 1
2 0 0 1 0
3 0 0 1 1
4 0 1 0 0
5 0 1 0 1
6 0 1 1 0
7 0 1 1 1
8 1 0 0 0
9 1 0 0 1
10 (recycles) 0 0 0 0
DESIGN OF SYNCHRONOUS COUNTER
General clocked sequential circuit.
DESIGN OF SYNCHRONOUS COUNTER
Steps used in the design of sequential circuit:
1. Specify the counter sequence and draw a state diagram
2. Derive a next-state table from the state diagram
3. Develop a transition table showing the flip-flop inputs
required for each transition. The transition table is always the
same for a given type of flip-flop
4. Transfer the J and K states from the transition table to K-
maps. There is a K-map for each input of each flip-flop.
5. Group the K-map cells to generate and derive the logic
expression for each flip-flop input.
6. Implement the expressions with combinational logic, and
combine with the flip-flops to create the counter.
DESIGN OF SYNCHRONOUS COUNTER
Example:
1. Design a Modulus-4 synchronous up-counter. Use D flip-flops.
2. Design a Modulus-4 synchronous up-counter. Use T flip-flops.
3. Design a Modulus-4 synchronous up-counter. Use JK flip-flops.
4. Design a Modulus-4 synchronous up-counter. Use SR flip-flops.
DESIGN OF SYNCHRONOUS COUNTER
Example: Design 3-bit Gray code counter by using JK, T, D and SR
flip-flop.
Step 1:
State diagram for a 3-bit Gray code counter.
DESIGN OF SYNCHRONOUS COUNTER
Next-state table for a 3-bit Gray code counter.
Present State Next State
Q2 Q1 Q0 Q2 Q1 Q0
0 0 0 0 0 1
0 0 1 0 1 1
0 1 1 0 1 0
0 1 0 1 1 0
1 1 0 1 1 1
1 1 1 1 0 1
1 0 1 1 0 0
1 0 0 0 0 0
TRANSITION TABLE FOR A J-K FLIP-FLOP
QN : present state
QN+1: next state
X: Don’t care
Output Transitions Flip-flop Inputs
QN QN+1 J K
0  0 0 X
0  1 1 X
1  0 X 1
1  1 X 0
KARNAUGH MAPS FOR PRESENT-STATE J AND K INPUTS.
THREE-BIT GRAY CODE COUNTER.
EXAMPLE:
DESIGN A COUNTER WITH THE IRREGULAR BINARY COUNT SEQUENCE AS
SHOWN IN THE STATE DIAGRAM. USE J-K FLIP-FLOPS
NEXT-STATE TABLE
Present State Next State
Q2 Q1 Q0 Q2 Q1 Q0
0 0 1 0 1 0
0 1 0 1 0 1
1 0 1 1 1 1
1 1 1 0 0 1
TRANSITION TABLE FOR A J-K FLIP-FLOP
Output Transitions Flip-flop Inputs
QN QN+1 J K
0  0 0 X
0  1 1 X
1  0 X 1
1  1 X 0
K-MAP
THE COUNTER CIRCUIT
EXAMPLE :
STATE DIAGRAM FOR A 3-BIT UP/DOWN GRAY CODE COUNTER.
THE 74HC163 4-BIT SYNCHRONOUS BINARY COUNTER. (THE QUALIFYING
LABEL CTR DIV 16 INDICATES A COUNTER WITH SIXTEEN STATES.)
TIMING EXAMPLE FOR A 74HC163.
THE 74LS160 SYNCHRONOUS BCD DECADE COUNTER. (THE QUALIFYING
LABEL CTR DIV 10 INDICATES A COUNTER WITH TEN STATES.)
TIMING EXAMPLE FOR A 74LS160.
UP/DOWN SYNCHRONOUS COUNTER
A BASIC 3-BIT UP/DOWN SYNCHRONOUS COUNTER.
TIMING DIAGRAM
THE 74HC190 UP/DOWN SYNCHRONOUS DECADE COUNTER.
TIMING EXAMPLE FOR A 74HC190.
J AND K MAPS FOR TABLE 9-11. THE UP/DOWN CONTROL INPUT, Y, IS
TREATED AS A FOURTH VARIABLE.
THREE-BIT UP/DOWN GRAY CODE COUNTER.
CASCADE COUNTERS
Two cascaded counters (all J and K inputs are HIGH).
A MODULUS-100 COUNTER USING TWO CASCADED DECADE COUNTERS.
THREE CASCADED DECADE COUNTERS FORMING A DIVIDE-BY-1000
FREQUENCY DIVIDER WITH INTERMEDIATE DIVIDE- BY-10 AND DIVIDE-BY-100
OUTPUTS.
EXAMPLE:
DETERMINE THE OVERALL MODULUS OF THE TWO CASCADED COUNTER FOR (A) AND (B)
For (a) the overall modulus for the 3 counter
configuration is 8 x 12 x 16 = 1536
for (b) the overall modulus for the 4 counter configuration
is 10 x 4 x 7 x 5 = 1400
A DIVIDE-BY-100 COUNTER USING TWO 74LS160 DECADE COUNTERS.
A DIVIDE-BY-40,000 COUNTER USING 74HC161 4-BIT BINARY COUNTERS.
NOTE THAT EACH OF THE PARALLEL DATA INPUTS IS SHOWN IN BINARY ORDER
(THE RIGHT-MOST BIT D0 IS THE LSB IN EACH COUNTER).
DECODING OF STATE 6 (110).
COUNTER DECODING
* To determine when the counter is in a certain states in its
sequence by using decoders or logic gates.
A 3-BIT COUNTER WITH ACTIVE-HIGH DECODING OF COUNT 2 AND COUNT 7.
A BASIC DECADE (BCD) COUNTER AND DECODER.
OUTPUTS WITH GLITCHES FROM THE PREVIOUS DECODER. GLITCH WIDTHS ARE EXAGGERATED FOR
ILLUSTRATION AND ARE USUALLY ONLY A FEW NANOSECONDS WIDE.
THE BASIC DECADE COUNTER AND DECODER WITH STROBING TO ELIMINATE
GLITCHES.
STROBED DECODER OUTPUTS FOR THE CIRCUIT
SIMPLIFIED LOGIC DIAGRAM FOR A 12-HOUR DIGITAL CLOCK.
LOGIC DIAGRAM OF TYPICAL DIVIDE-BY-60 COUNTER USING 74LS160A SYNCHRONOUS
DECADE COUNTERS. NOTE THAT THE OUTPUTS ARE IN BINARY ORDER (THE RIGHT-MOST
BIT IS THE LSB).
LOGIC DIAGRAM FOR HOURS COUNTER AND DECODERS. NOTE THAT ON THE
COUNTER INPUTS AND OUTPUTS, THE RIGHT-MOST BIT IS THE LSB.
FUNCTIONAL BLOCK DIAGRAM FOR PARKING GARAGE CONTROL.
LOGIC DIAGRAM FOR MODULUS-100 UP/DOWN COUNTER FOR AUTOMOBILE
PARKING CONTROL.
PARALLEL-TO-SERIAL DATA CONVERSION LOGIC.
EXAMPLE OF PARALLEL-TO-SERIAL CONVERSION TIMING FOR THE PREVIOUS CIRCUIT
THANK YOU

More Related Content

What's hot

Modern control system
Modern control systemModern control system
Modern control systemPourya Parsa
 
signal & system inverse z-transform
signal & system inverse z-transformsignal & system inverse z-transform
signal & system inverse z-transformmihir jain
 
Emona tims-analog-communication-part1 2
Emona tims-analog-communication-part1 2Emona tims-analog-communication-part1 2
Emona tims-analog-communication-part1 2Subhajit Sahu
 
Signals and systems-3
Signals and systems-3Signals and systems-3
Signals and systems-3sarun soman
 
шугаман тэгшитгэл
шугаман тэгшитгэлшугаман тэгшитгэл
шугаман тэгшитгэлDelger Nasan
 
математик анализ лекц№9
математик анализ лекц№9математик анализ лекц№9
математик анализ лекц№9narangerelodon
 
тоон логик 8 l нийлбэрлэгч
тоон логик 8 l нийлбэрлэгчтоон логик 8 l нийлбэрлэгч
тоон логик 8 l нийлбэрлэгчtsdnsrn
 
тоон логик 6 7 l триггер
тоон логик 6 7 l триггертоон логик 6 7 l триггер
тоон логик 6 7 l триггерtsdnsrn
 
цахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzayaцахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле AnhzayaEnhmandah Hemeelee
 
Introduction to signals and systems
Introduction to signals and systemsIntroduction to signals and systems
Introduction to signals and systemssudarmani rajagopal
 
State space courses
State space coursesState space courses
State space coursesKAMEL HEMSAS
 
Fpga 10-bcd-to-excess-3-converter-manchester-encoding
Fpga 10-bcd-to-excess-3-converter-manchester-encodingFpga 10-bcd-to-excess-3-converter-manchester-encoding
Fpga 10-bcd-to-excess-3-converter-manchester-encodingMalik Tauqir Hasan
 
цахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzayaцахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле AnhzayaEnhmandah Hemeelee
 
магадлалын онол
магадлалын онолмагадлалын онол
магадлалын онолTsagaanaa Sambuu
 
Bit interleaved coded modulation
Bit interleaved coded modulationBit interleaved coded modulation
Bit interleaved coded modulationMridula Sharma
 
PRBS generation
PRBS generationPRBS generation
PRBS generationajay singh
 

What's hot (20)

Modern control system
Modern control systemModern control system
Modern control system
 
signal & system inverse z-transform
signal & system inverse z-transformsignal & system inverse z-transform
signal & system inverse z-transform
 
Emona tims-analog-communication-part1 2
Emona tims-analog-communication-part1 2Emona tims-analog-communication-part1 2
Emona tims-analog-communication-part1 2
 
Signals and systems-3
Signals and systems-3Signals and systems-3
Signals and systems-3
 
шугаман тэгшитгэл
шугаман тэгшитгэлшугаман тэгшитгэл
шугаман тэгшитгэл
 
математик анализ лекц№9
математик анализ лекц№9математик анализ лекц№9
математик анализ лекц№9
 
тоон логик 8 l нийлбэрлэгч
тоон логик 8 l нийлбэрлэгчтоон логик 8 l нийлбэрлэгч
тоон логик 8 l нийлбэрлэгч
 
тоон логик 6 7 l триггер
тоон логик 6 7 l триггертоон логик 6 7 l триггер
тоон логик 6 7 l триггер
 
цахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzayaцахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzaya
 
Introduction to signals and systems
Introduction to signals and systemsIntroduction to signals and systems
Introduction to signals and systems
 
State space courses
State space coursesState space courses
State space courses
 
Control chap7
Control chap7Control chap7
Control chap7
 
Fpga 10-bcd-to-excess-3-converter-manchester-encoding
Fpga 10-bcd-to-excess-3-converter-manchester-encodingFpga 10-bcd-to-excess-3-converter-manchester-encoding
Fpga 10-bcd-to-excess-3-converter-manchester-encoding
 
14 activefilters
14 activefilters14 activefilters
14 activefilters
 
Butterworth filter
Butterworth filterButterworth filter
Butterworth filter
 
цахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzayaцахилгаан соронзон реле Anhzaya
цахилгаан соронзон реле Anhzaya
 
магадлалын онол
магадлалын онолмагадлалын онол
магадлалын онол
 
Bit interleaved coded modulation
Bit interleaved coded modulationBit interleaved coded modulation
Bit interleaved coded modulation
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
PRBS generation
PRBS generationPRBS generation
PRBS generation
 

Similar to EET107_Chapter 3_SLD(part2.1)-edit1.ppt

Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfTamiratDejene1
 
counters and registers
counters and registerscounters and registers
counters and registersMeenaAnusha1
 
counters_and_registers_5 lecture fifth.ppt
counters_and_registers_5 lecture fifth.pptcounters_and_registers_5 lecture fifth.ppt
counters_and_registers_5 lecture fifth.pptImranAhmadAhmad
 
Counter - by Zakariya Hossain
Counter - by Zakariya HossainCounter - by Zakariya Hossain
Counter - by Zakariya HossainZakariya Hossain
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counterRONAK SUTARIYA
 
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETEC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETSeshaVidhyaS
 
Sequential circuits Sequential circuits1
Sequential circuits Sequential circuits1Sequential circuits Sequential circuits1
Sequential circuits Sequential circuits1ssuser6feece1
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter DesignGargiKhanna1
 
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
 
B sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registersB sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registersRai University
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuitsG Subramaniamg
 

Similar to EET107_Chapter 3_SLD(part2.1)-edit1.ppt (20)

Chapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdfChapter 7_Counters (EEEg4302).pdf
Chapter 7_Counters (EEEg4302).pdf
 
counters and registers
counters and registerscounters and registers
counters and registers
 
counters_and_registers_5 lecture fifth.ppt
counters_and_registers_5 lecture fifth.pptcounters_and_registers_5 lecture fifth.ppt
counters_and_registers_5 lecture fifth.ppt
 
Basics Counters
Basics Counters Basics Counters
Basics Counters
 
Counter - by Zakariya Hossain
Counter - by Zakariya HossainCounter - by Zakariya Hossain
Counter - by Zakariya Hossain
 
Synchronous down counter
Synchronous down counterSynchronous down counter
Synchronous down counter
 
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCETEC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
EC8392 Digital Electronics- Unit-3 -S.Sesha Vidhya-ASP-ECE-RMKCET
 
Dee2034 chapter 5 counter
Dee2034 chapter 5 counterDee2034 chapter 5 counter
Dee2034 chapter 5 counter
 
Sequential circuits Sequential circuits1
Sequential circuits Sequential circuits1Sequential circuits Sequential circuits1
Sequential circuits Sequential circuits1
 
G. ripple counter
G. ripple counterG. ripple counter
G. ripple counter
 
Digital Counter Design
 Digital Counter Design Digital Counter Design
Digital Counter Design
 
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]
 
Ijecet 06 07_005
Ijecet 06 07_005Ijecet 06 07_005
Ijecet 06 07_005
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
 
Counters
CountersCounters
Counters
 
B sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registersB sc cs i bo-de u-iii counters & registers
B sc cs i bo-de u-iii counters & registers
 
Analysis sequential circuits
Analysis sequential circuitsAnalysis sequential circuits
Analysis sequential circuits
 
4 bit Binary counter
4 bit Binary counter4 bit Binary counter
4 bit Binary counter
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...RKavithamani
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
“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
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 

Recently uploaded (20)

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
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
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
Privatization and Disinvestment - Meaning, Objectives, Advantages and Disadva...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
“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...
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.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
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 

EET107_Chapter 3_SLD(part2.1)-edit1.ppt

  • 1. Chapter 3: Sequential Logic Design (Part 2.1) EET107/3 DIGITAL ELECTRONICS 1
  • 2. 3.2 COUNTER INTRODUCTION  A counter – a group of flip-flops connected together to perform counting operations.  The number of flip-flops used and the way in which they are connected determine the number of states (modulus).  Two broad categories according to the way they are clocked: Asynchronous counter Synchronous counter
  • 3. SYNCHRONOUS COUNTER A 2-bit synchronous binary counter:
  • 4. SYNCHRONOUS COUNTER Timing details for the 2-bit synchronous counter operation (the propagation delays of both flip-flops are assumed to be equal):
  • 5. SYNCHRONOUS COUNTER The Binary State Sequence: CLOCK PULSE Q1 Q0 Initially 0 0 1 0 1 2 1 0 3 1 1 4 (recycles) 0 0
  • 6. SYNCHRONOUS COUNTER A 3-bit synchronous binary counter:
  • 7. SYNCHRONOUS COUNTER The Binary State Sequence for a 3-bit Binary Counter: CLOCK PULSE Q2 Q1 Q0 Initially 0 0 0 1 0 0 1 2 0 1 0 3 0 1 1 4 1 0 0 5 1 0 1 6 1 1 0 7 1 1 1 8 (recycles) 0 0 0
  • 8. SYNCHRONOUS COUNTER A 4-bit synchronous binary counter and timing diagram. Points where the AND gate outputs are HIGH are indicated by the shaded areas.
  • 9. SYNCHRONOUS COUNTER A 4-Bit Synchronous BCD Decade Counter:
  • 10. SYNCHRONOUS COUNTER The Binary State Sequence for BCD Decade Counter: CLOCK PULSE Q3 Q2 Q1 Q0 Initially 0 0 0 0 1 0 0 0 1 2 0 0 1 0 3 0 0 1 1 4 0 1 0 0 5 0 1 0 1 6 0 1 1 0 7 0 1 1 1 8 1 0 0 0 9 1 0 0 1 10 (recycles) 0 0 0 0
  • 11. DESIGN OF SYNCHRONOUS COUNTER General clocked sequential circuit.
  • 12. DESIGN OF SYNCHRONOUS COUNTER Steps used in the design of sequential circuit: 1. Specify the counter sequence and draw a state diagram 2. Derive a next-state table from the state diagram 3. Develop a transition table showing the flip-flop inputs required for each transition. The transition table is always the same for a given type of flip-flop 4. Transfer the J and K states from the transition table to K- maps. There is a K-map for each input of each flip-flop. 5. Group the K-map cells to generate and derive the logic expression for each flip-flop input. 6. Implement the expressions with combinational logic, and combine with the flip-flops to create the counter.
  • 13. DESIGN OF SYNCHRONOUS COUNTER Example: 1. Design a Modulus-4 synchronous up-counter. Use D flip-flops. 2. Design a Modulus-4 synchronous up-counter. Use T flip-flops. 3. Design a Modulus-4 synchronous up-counter. Use JK flip-flops. 4. Design a Modulus-4 synchronous up-counter. Use SR flip-flops.
  • 14. DESIGN OF SYNCHRONOUS COUNTER Example: Design 3-bit Gray code counter by using JK, T, D and SR flip-flop. Step 1: State diagram for a 3-bit Gray code counter.
  • 15. DESIGN OF SYNCHRONOUS COUNTER Next-state table for a 3-bit Gray code counter. Present State Next State Q2 Q1 Q0 Q2 Q1 Q0 0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 0 1 0 0 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 0 1 1 0 1 1 0 0 1 0 0 0 0 0
  • 16. TRANSITION TABLE FOR A J-K FLIP-FLOP QN : present state QN+1: next state X: Don’t care Output Transitions Flip-flop Inputs QN QN+1 J K 0  0 0 X 0  1 1 X 1  0 X 1 1  1 X 0
  • 17. KARNAUGH MAPS FOR PRESENT-STATE J AND K INPUTS.
  • 19. EXAMPLE: DESIGN A COUNTER WITH THE IRREGULAR BINARY COUNT SEQUENCE AS SHOWN IN THE STATE DIAGRAM. USE J-K FLIP-FLOPS
  • 20. NEXT-STATE TABLE Present State Next State Q2 Q1 Q0 Q2 Q1 Q0 0 0 1 0 1 0 0 1 0 1 0 1 1 0 1 1 1 1 1 1 1 0 0 1
  • 21. TRANSITION TABLE FOR A J-K FLIP-FLOP Output Transitions Flip-flop Inputs QN QN+1 J K 0  0 0 X 0  1 1 X 1  0 X 1 1  1 X 0
  • 22. K-MAP
  • 24. EXAMPLE : STATE DIAGRAM FOR A 3-BIT UP/DOWN GRAY CODE COUNTER.
  • 25. THE 74HC163 4-BIT SYNCHRONOUS BINARY COUNTER. (THE QUALIFYING LABEL CTR DIV 16 INDICATES A COUNTER WITH SIXTEEN STATES.)
  • 26. TIMING EXAMPLE FOR A 74HC163.
  • 27. THE 74LS160 SYNCHRONOUS BCD DECADE COUNTER. (THE QUALIFYING LABEL CTR DIV 10 INDICATES A COUNTER WITH TEN STATES.)
  • 28. TIMING EXAMPLE FOR A 74LS160.
  • 29. UP/DOWN SYNCHRONOUS COUNTER A BASIC 3-BIT UP/DOWN SYNCHRONOUS COUNTER.
  • 31. THE 74HC190 UP/DOWN SYNCHRONOUS DECADE COUNTER.
  • 32. TIMING EXAMPLE FOR A 74HC190.
  • 33. J AND K MAPS FOR TABLE 9-11. THE UP/DOWN CONTROL INPUT, Y, IS TREATED AS A FOURTH VARIABLE.
  • 34. THREE-BIT UP/DOWN GRAY CODE COUNTER.
  • 35. CASCADE COUNTERS Two cascaded counters (all J and K inputs are HIGH).
  • 36. A MODULUS-100 COUNTER USING TWO CASCADED DECADE COUNTERS.
  • 37. THREE CASCADED DECADE COUNTERS FORMING A DIVIDE-BY-1000 FREQUENCY DIVIDER WITH INTERMEDIATE DIVIDE- BY-10 AND DIVIDE-BY-100 OUTPUTS.
  • 38. EXAMPLE: DETERMINE THE OVERALL MODULUS OF THE TWO CASCADED COUNTER FOR (A) AND (B) For (a) the overall modulus for the 3 counter configuration is 8 x 12 x 16 = 1536 for (b) the overall modulus for the 4 counter configuration is 10 x 4 x 7 x 5 = 1400
  • 39. A DIVIDE-BY-100 COUNTER USING TWO 74LS160 DECADE COUNTERS.
  • 40. A DIVIDE-BY-40,000 COUNTER USING 74HC161 4-BIT BINARY COUNTERS. NOTE THAT EACH OF THE PARALLEL DATA INPUTS IS SHOWN IN BINARY ORDER (THE RIGHT-MOST BIT D0 IS THE LSB IN EACH COUNTER).
  • 41. DECODING OF STATE 6 (110). COUNTER DECODING * To determine when the counter is in a certain states in its sequence by using decoders or logic gates.
  • 42. A 3-BIT COUNTER WITH ACTIVE-HIGH DECODING OF COUNT 2 AND COUNT 7.
  • 43. A BASIC DECADE (BCD) COUNTER AND DECODER.
  • 44. OUTPUTS WITH GLITCHES FROM THE PREVIOUS DECODER. GLITCH WIDTHS ARE EXAGGERATED FOR ILLUSTRATION AND ARE USUALLY ONLY A FEW NANOSECONDS WIDE.
  • 45. THE BASIC DECADE COUNTER AND DECODER WITH STROBING TO ELIMINATE GLITCHES.
  • 46. STROBED DECODER OUTPUTS FOR THE CIRCUIT
  • 47. SIMPLIFIED LOGIC DIAGRAM FOR A 12-HOUR DIGITAL CLOCK.
  • 48. LOGIC DIAGRAM OF TYPICAL DIVIDE-BY-60 COUNTER USING 74LS160A SYNCHRONOUS DECADE COUNTERS. NOTE THAT THE OUTPUTS ARE IN BINARY ORDER (THE RIGHT-MOST BIT IS THE LSB).
  • 49. LOGIC DIAGRAM FOR HOURS COUNTER AND DECODERS. NOTE THAT ON THE COUNTER INPUTS AND OUTPUTS, THE RIGHT-MOST BIT IS THE LSB.
  • 50. FUNCTIONAL BLOCK DIAGRAM FOR PARKING GARAGE CONTROL.
  • 51. LOGIC DIAGRAM FOR MODULUS-100 UP/DOWN COUNTER FOR AUTOMOBILE PARKING CONTROL.
  • 53. EXAMPLE OF PARALLEL-TO-SERIAL CONVERSION TIMING FOR THE PREVIOUS CIRCUIT