SlideShare a Scribd company logo
LOGIC DESIGN
Counters
Decades Counter
Q3 Q2 Q1 Q0

BCD
Counter
100’s Digit

Q3 Q2 Q1 Q0

BCD
Counter
10’s Digit

Q3 Q2 Q1 Q0

BCD
Counter

Count
(CLK)

1’s Digit

4 / 28
Synchronous Binary Counter
Q3

Q2

Q1

Q0
Enable

Q

Q

J

Q

J

Q

J

Q
To
Next
Stage

J
K

Q

K

Q

K

Q

K
CLK

5 / 28
Up-Down Binary Counter
Q3
Q
Q

Q2
T

Q1
Q
Q

T

Q0
Q
Q

T

Q

T

Q
CLK

Up

Down
6 / 28
BCD Counter

0
0000

0
1

0001

0

1

0010

0

1

0011

0
1

0100
1

1
1001

1000
1

0

0111
1

0

0110
1

0101
1

0

0

0

Q3 Q2 Q1 Q0
E

7 / 28
BCD Counter

0
0000 / 0

0
1

0

0001 / 0

1

0010 / 0

0

1

0011 / 0

0
1

0100 / 0
1

1
1001 / 1

1000 / 0
1

0

0111 / 0
1

0

0110 / 0
1

0101 / 0
1

0

0

0

Q3 Q2 Q1 Q0
y

E

8 / 28
Binary Counter with Parallel Load
CLR

LD

Count

Q(t+1)

0

x

x

0

1

0

0

Q(t)

1

0

1

Q(t)+1

1

1

x

I

I3

Q3

I2

Q2

I1

Q1

I0

Q0

LD
Count
CLR

Usually Asynchronous Clear
9 / 28
BCD Counter Example
LD
0

Q3

A3

0

I2

Q2

A2

0

I1

Q1

A1

0

Count

I3

I0

Q0

A0

Count
CLR
1

CLK
10 / 28
Ring Counter
0001

T3 T2 T1 T0

0010

0100

1000

CLK
T0

2-to-4 Decoder

T1

T2
2-bit counter

T3

11 / 28
Johnson Counter
0000

0001

0011

0111

1000

1100

1110

1111

Q3

Q1

Q2
Q
Q

D

Q
Q

D

Q0
Q
Q

D

Q

D

Q
CLK
12 / 28
Binary Counters
• Binary Counters do exactly what it sounds like they should.
They count in binary.
• Binary numbers are comprised of only 0’s and 1’s.
Decimal QD

QC

QB

QA

0
1
2
3
4
5

0
0
0
0
1
1

0
0
1
1
0
0

0
1
0
1
0
1

0
0
0
0
0
0
20 March 2007

Electronic Instrumentation

13
Binary Counters are made with Flip Flops
DCBA = 1100

DCBA = 1111

Each flip flop corresponds to one bit in the counter.
Hence, this is a four-bit counter.

20 March 2007

Electronic Instrumentation

14
Typical Output for Binary Counter

1100
=12
DCBA = 1100

DCBA = 1111

• Note how the Q outputs form 4 bit numbers
20 March 2007

Electronic Instrumentation

15

More Related Content

What's hot

COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
SUBHA SHREE
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
Shankar Gangaju
 
Sequential circuit multiplier
Sequential circuit multiplierSequential circuit multiplier
Sequential circuit multiplier
Subhram
 
Timed automata
Timed automataTimed automata
Timed automata
Karthik Velamakanni
 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Hsien-Hsin Sean Lee, Ph.D.
 
Sequential multiplication
Sequential multiplicationSequential multiplication
Sequential multiplication
Taqwa It Center
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
Nitesh Dubey
 
COMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPSCOMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPSStarlee Lathong
 
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDLSeminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Naseer LoneRider
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13
John Todora
 
Microoperations
MicrooperationsMicrooperations
Microoperations
Rakesh Pillai
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuitsAneeq Malik
 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperationsNitesh Singh
 
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
Hsien-Hsin Sean Lee, Ph.D.
 
12 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa1412 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa14
John Todora
 
VLSI Final Design Project
VLSI Final Design ProjectVLSI Final Design Project
VLSI Final Design Project
Vignesh Ganesan
 
Boothmultiplication
BoothmultiplicationBoothmultiplication
Boothmultiplication
melisha monteiro
 
D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronics
Easy n Inspire L
 

What's hot (20)

8 Bit ALU
8 Bit ALU8 Bit ALU
8 Bit ALU
 
COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)COUNTERS(Synchronous & Asynchronous)
COUNTERS(Synchronous & Asynchronous)
 
Computer organization and architecture lab manual
Computer organization and architecture lab manual Computer organization and architecture lab manual
Computer organization and architecture lab manual
 
Sequential circuit multiplier
Sequential circuit multiplierSequential circuit multiplier
Sequential circuit multiplier
 
Timed automata
Timed automataTimed automata
Timed automata
 
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
Lec9 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Com...
 
Sequential multiplication
Sequential multiplicationSequential multiplication
Sequential multiplication
 
Computer Organization And Architecture lab manual
Computer Organization And Architecture lab manualComputer Organization And Architecture lab manual
Computer Organization And Architecture lab manual
 
COMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPSCOMBINATIONAL CIRCUITS & FLIP FLOPS
COMBINATIONAL CIRCUITS & FLIP FLOPS
 
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDLSeminar on Digital Multiplier(Booth Multiplier) Using VHDL
Seminar on Digital Multiplier(Booth Multiplier) Using VHDL
 
00 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp1300 chapter07 and_08_conversion_subroutines_force_sp13
00 chapter07 and_08_conversion_subroutines_force_sp13
 
Microoperations
MicrooperationsMicrooperations
Microoperations
 
Combinational circuits
Combinational circuitsCombinational circuits
Combinational circuits
 
Logic microoperations
Logic microoperationsLogic microoperations
Logic microoperations
 
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
Lec15 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Re...
 
12 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa1412 chapter06 math_instructions_fa14
12 chapter06 math_instructions_fa14
 
Lect23 Engin112
Lect23 Engin112Lect23 Engin112
Lect23 Engin112
 
VLSI Final Design Project
VLSI Final Design ProjectVLSI Final Design Project
VLSI Final Design Project
 
Boothmultiplication
BoothmultiplicationBoothmultiplication
Boothmultiplication
 
D flip flop in Digital electronics
D flip flop in Digital electronicsD flip flop in Digital electronics
D flip flop in Digital electronics
 

Viewers also liked

programmable logic array
programmable logic arrayprogrammable logic array
programmable logic array
Shiraz Azeem
 
Digital Registers & Counters
Digital Registers & CountersDigital Registers & Counters
Digital Registers & Counters
university of education,Lahore
 
Registers
RegistersRegisters
Registers
Sanjeev Patel
 
What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.
Kapil Dev Das
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous countersLee Diaz
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for studentsCT Sabariah Salihin
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2Ammara Javed
 
C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3Ammara Javed
 
Edge 2016 barbarians at the gateway
Edge 2016 barbarians at the gatewayEdge 2016 barbarians at the gateway
Edge 2016 barbarians at the gateway
akamaidevrel
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s comp
mrlee2014
 
Dld lecture module 04 01
Dld lecture module 04  01Dld lecture module 04  01
Dld lecture module 04 01
Bilal Maqbool ツ
 
Seven Segment Decoders
Seven Segment DecodersSeven Segment Decoders
Seven Segment Decoders
Pradipta Sarkar
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
Saumay Paul
 
Microprocessor based software developnent
Microprocessor based software developnentMicroprocessor based software developnent
Microprocessor based software developnentSandeep Kamath
 
BCD ADDER
BCD ADDER BCD ADDER

Viewers also liked (20)

programmable logic array
programmable logic arrayprogrammable logic array
programmable logic array
 
Digital Registers & Counters
Digital Registers & CountersDigital Registers & Counters
Digital Registers & Counters
 
Registers
RegistersRegisters
Registers
 
What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.What is CPU Register? Type of CPU Register.
What is CPU Register? Type of CPU Register.
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
 
Flip flops
Flip flopsFlip flops
Flip flops
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2
 
C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3C++ Programming Club-Lecture 3
C++ Programming Club-Lecture 3
 
Registers
RegistersRegisters
Registers
 
Edge 2016 barbarians at the gateway
Edge 2016 barbarians at the gatewayEdge 2016 barbarians at the gateway
Edge 2016 barbarians at the gateway
 
Latches v4
Latches v4Latches v4
Latches v4
 
12 latches
12 latches12 latches
12 latches
 
Number systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s compNumber systems - binary, BCD, 2s comp
Number systems - binary, BCD, 2s comp
 
Encoders
EncodersEncoders
Encoders
 
Dld lecture module 04 01
Dld lecture module 04  01Dld lecture module 04  01
Dld lecture module 04 01
 
Seven Segment Decoders
Seven Segment DecodersSeven Segment Decoders
Seven Segment Decoders
 
8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory8085 Interfacing with I/O Devices or Memory
8085 Interfacing with I/O Devices or Memory
 
Microprocessor based software developnent
Microprocessor based software developnentMicroprocessor based software developnent
Microprocessor based software developnent
 
BCD ADDER
BCD ADDER BCD ADDER
BCD ADDER
 

Similar to Counters

counters and registers
counters and registerscounters and registers
counters and registers
MeenaAnusha1
 
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
ImranAhmadAhmad
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Katrina Little
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic Circuits
Dilum Bandara
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
Digital System Design
 
lecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.pptlecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.ppt
ssuser2ae35a
 
Synchronous COUNTER presentation eng.ppt
Synchronous COUNTER presentation eng.pptSynchronous COUNTER presentation eng.ppt
Synchronous COUNTER presentation eng.ppt
JumanneChiyanda
 
10 chapter05 counters_fa14
10 chapter05 counters_fa1410 chapter05 counters_fa14
10 chapter05 counters_fa14John Todora
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
EasyStudy3
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
SHASHISHARMA850123
 
PLC PROGRAMMING- COUNTER INSTRUCTION
PLC PROGRAMMING- COUNTER INSTRUCTIONPLC PROGRAMMING- COUNTER INSTRUCTION
PLC PROGRAMMING- COUNTER INSTRUCTION
Paheerathan Sabaratnam
 
15CS32 ADE Module 5
15CS32 ADE Module 515CS32 ADE Module 5
15CS32 ADE Module 5
RLJIT
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
Omkar Rane
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
Heman Pathak
 
SMART RESTURANT (2)
SMART RESTURANT (2)SMART RESTURANT (2)
SMART RESTURANT (2)Mayank Negi
 
Conversión de flip flops
Conversión de flip flopsConversión de flip flops
Conversión de flip flops
Pablo Cruz Rodríguez
 
STM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicosSTM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicos
ps6005tec
 
Movement types-in-sap-mm
Movement types-in-sap-mmMovement types-in-sap-mm
Movement types-in-sap-mmvinitlodha
 

Similar to Counters (20)

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
 
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence CounterLab 9 D-Flip Flops: Shift Register and Sequence Counter
Lab 9 D-Flip Flops: Shift Register and Sequence Counter
 
Sequential Logic Circuits
Sequential Logic CircuitsSequential Logic Circuits
Sequential Logic Circuits
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
 
lecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.pptlecture25_algorithmic_state_machines.ppt
lecture25_algorithmic_state_machines.ppt
 
Synchronous COUNTER presentation eng.ppt
Synchronous COUNTER presentation eng.pptSynchronous COUNTER presentation eng.ppt
Synchronous COUNTER presentation eng.ppt
 
10 chapter05 counters_fa14
10 chapter05 counters_fa1410 chapter05 counters_fa14
10 chapter05 counters_fa14
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
9920Lec12 FSM.ppt
9920Lec12 FSM.ppt9920Lec12 FSM.ppt
9920Lec12 FSM.ppt
 
PLC PROGRAMMING- COUNTER INSTRUCTION
PLC PROGRAMMING- COUNTER INSTRUCTIONPLC PROGRAMMING- COUNTER INSTRUCTION
PLC PROGRAMMING- COUNTER INSTRUCTION
 
15CS32 ADE Module 5
15CS32 ADE Module 515CS32 ADE Module 5
15CS32 ADE Module 5
 
Datasheet
DatasheetDatasheet
Datasheet
 
Datasheet
DatasheetDatasheet
Datasheet
 
Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148Analog To Digital Conversion (ADC) Programming in LPC2148
Analog To Digital Conversion (ADC) Programming in LPC2148
 
Sequential Circuit
Sequential CircuitSequential Circuit
Sequential Circuit
 
SMART RESTURANT (2)
SMART RESTURANT (2)SMART RESTURANT (2)
SMART RESTURANT (2)
 
Conversión de flip flops
Conversión de flip flopsConversión de flip flops
Conversión de flip flops
 
STM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicosSTM_ADC para microcontroladores STM32 - Conceptos basicos
STM_ADC para microcontroladores STM32 - Conceptos basicos
 
Movement types-in-sap-mm
Movement types-in-sap-mmMovement types-in-sap-mm
Movement types-in-sap-mm
 

More from Ammara Javed

Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devicesAmmara Javed
 
The Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday LifeThe Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday LifeAmmara Javed
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
Ammara Javed
 

More from Ammara Javed (12)

Logic Gates
Logic GatesLogic Gates
Logic Gates
 
Programmable logic devices
Programmable logic devicesProgrammable logic devices
Programmable logic devices
 
Maxterms
MaxtermsMaxterms
Maxterms
 
Karnaugh Maps
Karnaugh MapsKarnaugh Maps
Karnaugh Maps
 
Demultiplexers
DemultiplexersDemultiplexers
Demultiplexers
 
Minterms
MintermsMinterms
Minterms
 
Multiplexer
MultiplexerMultiplexer
Multiplexer
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Decoders
DecodersDecoders
Decoders
 
Circuit Analysis-
Circuit Analysis-Circuit Analysis-
Circuit Analysis-
 
The Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday LifeThe Impact Of Holy Quran In Our Everyday Life
The Impact Of Holy Quran In Our Everyday Life
 
C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1C++ Programming Club-Lecture 1
C++ Programming Club-Lecture 1
 

Counters