SlideShare uma empresa Scribd logo
1 de 7
Class No 03 & 09


Lab No. 05
                       To Design a counter using 4 master slave flip-flops


Aim:

    Design a counter using 4 master slave flip-flops for counting 0 to F.

Flip-Flops:

In electronics, a flip-flop or latch is a circuit that has two stable states and can be used to
store state information. The circuit can be made to change state by signals applied to one or
more control inputs and will have one or two outputs. It is the basic storage element
in sequential logic. Flip-flops and latches are a fundamental building block of digital
electronics systems used in computers, communications, and many other types of systems.
Flip-flops and latches are used as data storage elements. Such data storage can be used for
storage of state, and such a circuit is described as sequential logic. When used in a finite-state
machine, the output and next state depend not only on its current input, but also on its current
state (and hence, previous inputs). It can also be used for counting of pulses, and for
synchronizing variably-timed input signals to some reference timing signal.
Flip-flops can be either simple (transparent or opaque) or clocked (synchronous or edge-
triggered); the simple ones are commonly called latches. The wordlatch is mainly used for
storage elements, while clocked devices are described as flip-flops.
Simplest Fliflop is:




                                 Figure 1: Simplest SR Flip-Flop

Truth Table:




                                                                                                1
Micro-Electronics Technologies
Class No 03 & 09


The JK Flip-flop

This simple JK flip-Flop is the most widely used of all the flip-flop designs and is
considered to be a universal flip-flop circuit. The sequential operation of the JK flip-flop is
exactly the same as for the previous SR flip-flop with the same "set" and "reset" inputs. The
difference this time is that the JK flip-flop has no invalid or forbidden input states of the SR
Latch (when S and R are both 1).

The JK flip-flop is basically a gated SR flip-flop with the addition of a clock input circuitry
that prevents the illegal or invalid output condition that can occur when both
inputs S and R are equal to logic level "1". Due to this additional clocked input, a JK flip-flop
has four possible input combinations, "logic 1", "logic 0", "no change" and "toggle". The
symbol for a JK flip-flop is similar to that of an SR Bistable Latch as seen in the previous
tutorial except for the addition of a clock input.




                                     Figure 2: JK Flip-Flop

The main defect is toggling so this can be overcome by making JK flip-flop edge triggered
flip-flop & to do so we use MASTER-SLAVE Flip-Flop (the output toggle at clock trigging
High-Low point of clock only)

Truth Table:




                                                                                                   2
Micro-Electronics Technologies
Class No 03 & 09


The Master-Slave JK Flip-flop (Edge Trigged Flip-Flop):

The Master-Slave Flip-Flop is basically two gated SR flip-flops connected together in a series
configuration with the slave having an inverted clock pulse. The outputs from Q and Q from
the "Slave" flip-flop are fed back to the inputs of the "Master" with the outputs of the
"Master" flip-flop being connected to the two inputs of the "Slave" flip-flop. This feedback
configuration from the slave's output to the master's input gives the characteristic toggle of
the JK flip-flop as shown below.




                                 Figure 3: Master Slave Flip-Flop

The input signals J and K are connected to the gated "master" SR flip-flop which "locks" the
input condition while the clock (Clk) input is "HIGH" at logic level "1". As the clock input of
the "slave" flip-flop is the inverse (complement) of the "master" clock input, the "slave" SR
flip-flop does not toggle. The outputs from the "master" flip-flop are only "seen" by the gated
"slave" flip-flop when the clock input goes "LOW" to logic level "0". When the clock is
"LOW", the outputs from the "master" flip-flop are latched and any additional changes to its
inputs are ignored. The gated "slave" flip-flop now responds to the state of its inputs passed
over by the "master" section. Then on the "Low-to-High" transition of the clock pulse the
inputs of the "master" flip-flop are fed through to the gated inputs of the "slave" flip-flop and
on the "High-to-Low" transition the same inputs are reflected on the output of the "slave"
making this type of flip-flop edge or pulse-triggered.

Then, the circuit accepts input data when the clock signal is "HIGH", and passes the data to
the output on the falling-edge of the clock signal. In other words, the Master-Slave JK Flip-
flop is a "Synchronous" device as it only passes data with the timing of the clock signal.

Ring Counter:

 A ring counter is a digital circuit which consists of a series of flip flops connected together in
a feedback manner. The circuit is special type of shift register where the output of the last
flip-flop is fed back to the input of first flipflop.When the circuit is reset, except one of the
flip-flop output, all others are made zero. For n-flip-flop ring counter we have a MOD-n
counter. That means the counter has n different states.
The block diagram for a 4 bit ring counter is shown below:




                                                                                                  3
Micro-Electronics Technologies
Class No 03 & 09




                          Figure 4: Block Diagram of 4-bit Counter.
Task:
    Making Counter In Software:

Apparatus:

    DSCHV2-7 installed PC.


Procedure:

    First of all open the software by clicking on-to the icon      .
    For the specific gate select the required components by clicking the symbol library
     icon                  .
    DSCHV2-7 software includes a comprehensive block library, from this library “pmos,
     nmos, ground, dc source (vdd), button, led (to see the output) “can be selected to draw
     the circuit just by click-and-drag operations.
    To draw the lines between the components click on-to the icon    & then join the
     two components by simple drag operation.
    The components attributes can be changed by double clicking on-to the component
     there by changing the required field.
    After completing the circuit diagram simulate the circuit by clicking       .
    Finally, click       to see the timing diagram to verify the truth table.

Components used:
       NAND Gate
       Push Buttons as logic state.
       Ground
       Output leds
       Invertors




                                                                                               4
Micro-Electronics Technologies
Class No 03 & 09


Circuit Diagram:




                         Figure 5: 4-Bit Jk Flip-Flop Counter Circuit

Some Outputs Shown:

Fig A:




                                                                                      5
Micro-Electronics Technologies
Class No 03 & 09


Fig B:




Fig C:




                                               6
Micro-Electronics Technologies
Class No 03 & 09


Timing Diagram:




                                 Figure 6 : Timing diagram

Conclusion:

      From timing diagram it is verified that the counter counted from 0 up to F i-e 4-bit
       counter.
      Hence it is verified that the JK Flip-Flop can be used in combination for counting.




                                                                                              7
Micro-Electronics Technologies

Mais conteúdo relacionado

Mais procurados

What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.Satya P. Joshi
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous countersLee Diaz
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic CircuitRamasubbu .P
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - CountersJayakrishnan J
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic designNallapati Anindra
 
Sequential cmos logic circuits
Sequential cmos logic circuitsSequential cmos logic circuits
Sequential cmos logic circuitsSakshi Bhargava
 
Ee2203 electronic-devices-and-circuits-lecture-notes
Ee2203 electronic-devices-and-circuits-lecture-notesEe2203 electronic-devices-and-circuits-lecture-notes
Ee2203 electronic-devices-and-circuits-lecture-notesdrmbalu
 
Dsd lab Practical File
Dsd lab Practical FileDsd lab Practical File
Dsd lab Practical FileSoumya Behera
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flopShuaib Hotak
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfKINGZzofYouTube
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block CodesNilaNila16
 

Mais procurados (20)

What are Flip Flops and Its types.
What are Flip Flops and Its types.What are Flip Flops and Its types.
What are Flip Flops and Its types.
 
flip flops
flip flops flip flops
flip flops
 
Synchronous counters
Synchronous countersSynchronous counters
Synchronous counters
 
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]SEQUENTIAL CIRCUITS [Flip-flops and Latches]
SEQUENTIAL CIRCUITS [Flip-flops and Latches]
 
Synchronous Counter
Synchronous Counter Synchronous Counter
Synchronous Counter
 
Sequential Logic Circuit
Sequential Logic CircuitSequential Logic Circuit
Sequential Logic Circuit
 
Digital Electronics - Counters
Digital Electronics - CountersDigital Electronics - Counters
Digital Electronics - Counters
 
Sequential circuits in digital logic design
Sequential circuits in digital logic designSequential circuits in digital logic design
Sequential circuits in digital logic design
 
D Flip Flop
D Flip Flop D Flip Flop
D Flip Flop
 
Sequential cmos logic circuits
Sequential cmos logic circuitsSequential cmos logic circuits
Sequential cmos logic circuits
 
CMOS
CMOS CMOS
CMOS
 
Flipflop
FlipflopFlipflop
Flipflop
 
8051 interfacing
8051 interfacing8051 interfacing
8051 interfacing
 
Ee2203 electronic-devices-and-circuits-lecture-notes
Ee2203 electronic-devices-and-circuits-lecture-notesEe2203 electronic-devices-and-circuits-lecture-notes
Ee2203 electronic-devices-and-circuits-lecture-notes
 
Logic family
Logic familyLogic family
Logic family
 
Dsd lab Practical File
Dsd lab Practical FileDsd lab Practical File
Dsd lab Practical File
 
Latches and flip flop
Latches and flip flopLatches and flip flop
Latches and flip flop
 
Basic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdfBasic Logic Gates with Truth Tables.pdf
Basic Logic Gates with Truth Tables.pdf
 
Sequential circuits
Sequential circuitsSequential circuits
Sequential circuits
 
Linear Block Codes
Linear Block CodesLinear Block Codes
Linear Block Codes
 

Destaque (10)

Counters In Digital Logic Design
Counters In Digital Logic DesignCounters In Digital Logic Design
Counters In Digital Logic Design
 
IS 151 Lecture 11
IS 151 Lecture 11IS 151 Lecture 11
IS 151 Lecture 11
 
IS 151 Lecture 2
IS 151 Lecture 2IS 151 Lecture 2
IS 151 Lecture 2
 
Counters
CountersCounters
Counters
 
Counters
CountersCounters
Counters
 
Counters
CountersCounters
Counters
 
Counters
CountersCounters
Counters
 
Chapter 5 counter
Chapter 5 counterChapter 5 counter
Chapter 5 counter
 
MSI Counters
MSI CountersMSI Counters
MSI Counters
 
Chapter 4 flip flop for students
Chapter 4 flip flop for studentsChapter 4 flip flop for students
Chapter 4 flip flop for students
 

Semelhante a counter using 4 master slave flip-flops

De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptxMukulThory1
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuitsAmrutaMehata
 
Digital clock presentation
Digital clock presentationDigital clock presentation
Digital clock presentationAditya Jha ✅
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxThanmayiKumar
 
Dee2034 chapter 4 flip flop for students part
Dee2034 chapter 4 flip flop  for students partDee2034 chapter 4 flip flop  for students part
Dee2034 chapter 4 flip flop for students partSITI SABARIAH SALIHIN
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxUtsavDas21
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Seshu Chakravarthy
 
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 CounterKatrina Little
 
Sr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATSr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATAmanGoyat2
 
flip flop Presentation
flip flop  Presentationflip flop  Presentation
flip flop Presentationmaalik123
 
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...MaryJacob24
 

Semelhante a counter using 4 master slave flip-flops (20)

Flip Flops
Flip FlopsFlip Flops
Flip Flops
 
De EE unit-3.pptx
De EE unit-3.pptxDe EE unit-3.pptx
De EE unit-3.pptx
 
Unit 4 sequential circuits
Unit 4  sequential circuitsUnit 4  sequential circuits
Unit 4 sequential circuits
 
Flip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas AghaniFlip & flop by Zaheer Abbas Aghani
Flip & flop by Zaheer Abbas Aghani
 
Digital clock presentation
Digital clock presentationDigital clock presentation
Digital clock presentation
 
unit 5.pptx
unit 5.pptxunit 5.pptx
unit 5.pptx
 
Flip flop
Flip flopFlip flop
Flip flop
 
Sequential Logic
Sequential LogicSequential Logic
Sequential Logic
 
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptxSEQUENTIAL CIRCUITS -Module 5 (1).pptx
SEQUENTIAL CIRCUITS -Module 5 (1).pptx
 
Unit 4 - PLC.pptx
Unit 4 - PLC.pptxUnit 4 - PLC.pptx
Unit 4 - PLC.pptx
 
Dee2034 chapter 4 flip flop for students part
Dee2034 chapter 4 flip flop  for students partDee2034 chapter 4 flip flop  for students part
Dee2034 chapter 4 flip flop for students part
 
Assignment#5
Assignment#5Assignment#5
Assignment#5
 
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptxDigital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
Digital_Electronics_Module_4_Sequential_Circuits v0.6.pptx
 
Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02Chapter4flipflop forstudents-131112193906-phpapp02
Chapter4flipflop forstudents-131112193906-phpapp02
 
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
 
Lecture 1 6844
Lecture 1 6844Lecture 1 6844
Lecture 1 6844
 
Sr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYATSr jk flip flop by AMAN GOYAT
Sr jk flip flop by AMAN GOYAT
 
DLD Chapter-5.pdf
DLD Chapter-5.pdfDLD Chapter-5.pdf
DLD Chapter-5.pdf
 
flip flop Presentation
flip flop  Presentationflip flop  Presentation
flip flop Presentation
 
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...
2 bit comparator, 4 1 Multiplexer, 1 4 Demultiplexer, Flip Flops and Register...
 

Mais de ZunAib Ali

Lcl filter design
Lcl filter designLcl filter design
Lcl filter designZunAib Ali
 
Power converter report
Power converter reportPower converter report
Power converter reportZunAib Ali
 
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive Application
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive ApplicationPerformance of Six-Pulse Line-Commutated Converter in DC Motor Drive Application
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive ApplicationZunAib Ali
 
SVM Simulation for three level inverter
SVM Simulation for three level inverterSVM Simulation for three level inverter
SVM Simulation for three level inverterZunAib Ali
 
Multi phase Star Rectifier
Multi phase Star Rectifier Multi phase Star Rectifier
Multi phase Star Rectifier ZunAib Ali
 
Space vector pwm_inverter
Space vector pwm_inverterSpace vector pwm_inverter
Space vector pwm_inverterZunAib Ali
 
Power transformer
Power transformerPower transformer
Power transformerZunAib Ali
 
Neutral point clamped inverter
Neutral point clamped inverterNeutral point clamped inverter
Neutral point clamped inverterZunAib Ali
 
7 channel Interleaved Boost Converter
7 channel Interleaved Boost Converter7 channel Interleaved Boost Converter
7 channel Interleaved Boost ConverterZunAib Ali
 
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...ZunAib Ali
 
Rectifiers Simulation
Rectifiers SimulationRectifiers Simulation
Rectifiers SimulationZunAib Ali
 
Instrumentational Amplifier
Instrumentational Amplifier Instrumentational Amplifier
Instrumentational Amplifier ZunAib Ali
 
Electronic Device pakages
Electronic Device pakagesElectronic Device pakages
Electronic Device pakagesZunAib Ali
 
Concept of energy transmission & distribution
Concept of energy transmission & distribution Concept of energy transmission & distribution
Concept of energy transmission & distribution ZunAib Ali
 
DC Motor Model
DC Motor Model DC Motor Model
DC Motor Model ZunAib Ali
 
High Voltage Dc (HVDC) transmission
High Voltage Dc (HVDC) transmissionHigh Voltage Dc (HVDC) transmission
High Voltage Dc (HVDC) transmissionZunAib Ali
 
Cambridge ielts 9 full
Cambridge ielts 9 fullCambridge ielts 9 full
Cambridge ielts 9 fullZunAib Ali
 
Water level buzzer
Water level buzzerWater level buzzer
Water level buzzerZunAib Ali
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLABZunAib Ali
 

Mais de ZunAib Ali (20)

Lcl filter design
Lcl filter designLcl filter design
Lcl filter design
 
Power converter report
Power converter reportPower converter report
Power converter report
 
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive Application
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive ApplicationPerformance of Six-Pulse Line-Commutated Converter in DC Motor Drive Application
Performance of Six-Pulse Line-Commutated Converter in DC Motor Drive Application
 
SVM Simulation for three level inverter
SVM Simulation for three level inverterSVM Simulation for three level inverter
SVM Simulation for three level inverter
 
Multi phase Star Rectifier
Multi phase Star Rectifier Multi phase Star Rectifier
Multi phase Star Rectifier
 
Space vector pwm_inverter
Space vector pwm_inverterSpace vector pwm_inverter
Space vector pwm_inverter
 
Power transformer
Power transformerPower transformer
Power transformer
 
Neutral point clamped inverter
Neutral point clamped inverterNeutral point clamped inverter
Neutral point clamped inverter
 
7 channel Interleaved Boost Converter
7 channel Interleaved Boost Converter7 channel Interleaved Boost Converter
7 channel Interleaved Boost Converter
 
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...
Sinusoidal PWM and Space Vector Modulation For Two Level Voltage Source Conve...
 
Rectifiers Simulation
Rectifiers SimulationRectifiers Simulation
Rectifiers Simulation
 
Instrumentational Amplifier
Instrumentational Amplifier Instrumentational Amplifier
Instrumentational Amplifier
 
Electronic Device pakages
Electronic Device pakagesElectronic Device pakages
Electronic Device pakages
 
Inverter
InverterInverter
Inverter
 
Concept of energy transmission & distribution
Concept of energy transmission & distribution Concept of energy transmission & distribution
Concept of energy transmission & distribution
 
DC Motor Model
DC Motor Model DC Motor Model
DC Motor Model
 
High Voltage Dc (HVDC) transmission
High Voltage Dc (HVDC) transmissionHigh Voltage Dc (HVDC) transmission
High Voltage Dc (HVDC) transmission
 
Cambridge ielts 9 full
Cambridge ielts 9 fullCambridge ielts 9 full
Cambridge ielts 9 full
 
Water level buzzer
Water level buzzerWater level buzzer
Water level buzzer
 
Fourier Specturm via MATLAB
Fourier Specturm via MATLABFourier Specturm via MATLAB
Fourier Specturm via MATLAB
 

counter using 4 master slave flip-flops

  • 1. Class No 03 & 09 Lab No. 05 To Design a counter using 4 master slave flip-flops Aim:  Design a counter using 4 master slave flip-flops for counting 0 to F. Flip-Flops: In electronics, a flip-flop or latch is a circuit that has two stable states and can be used to store state information. The circuit can be made to change state by signals applied to one or more control inputs and will have one or two outputs. It is the basic storage element in sequential logic. Flip-flops and latches are a fundamental building block of digital electronics systems used in computers, communications, and many other types of systems. Flip-flops and latches are used as data storage elements. Such data storage can be used for storage of state, and such a circuit is described as sequential logic. When used in a finite-state machine, the output and next state depend not only on its current input, but also on its current state (and hence, previous inputs). It can also be used for counting of pulses, and for synchronizing variably-timed input signals to some reference timing signal. Flip-flops can be either simple (transparent or opaque) or clocked (synchronous or edge- triggered); the simple ones are commonly called latches. The wordlatch is mainly used for storage elements, while clocked devices are described as flip-flops. Simplest Fliflop is: Figure 1: Simplest SR Flip-Flop Truth Table: 1 Micro-Electronics Technologies
  • 2. Class No 03 & 09 The JK Flip-flop This simple JK flip-Flop is the most widely used of all the flip-flop designs and is considered to be a universal flip-flop circuit. The sequential operation of the JK flip-flop is exactly the same as for the previous SR flip-flop with the same "set" and "reset" inputs. The difference this time is that the JK flip-flop has no invalid or forbidden input states of the SR Latch (when S and R are both 1). The JK flip-flop is basically a gated SR flip-flop with the addition of a clock input circuitry that prevents the illegal or invalid output condition that can occur when both inputs S and R are equal to logic level "1". Due to this additional clocked input, a JK flip-flop has four possible input combinations, "logic 1", "logic 0", "no change" and "toggle". The symbol for a JK flip-flop is similar to that of an SR Bistable Latch as seen in the previous tutorial except for the addition of a clock input. Figure 2: JK Flip-Flop The main defect is toggling so this can be overcome by making JK flip-flop edge triggered flip-flop & to do so we use MASTER-SLAVE Flip-Flop (the output toggle at clock trigging High-Low point of clock only) Truth Table: 2 Micro-Electronics Technologies
  • 3. Class No 03 & 09 The Master-Slave JK Flip-flop (Edge Trigged Flip-Flop): The Master-Slave Flip-Flop is basically two gated SR flip-flops connected together in a series configuration with the slave having an inverted clock pulse. The outputs from Q and Q from the "Slave" flip-flop are fed back to the inputs of the "Master" with the outputs of the "Master" flip-flop being connected to the two inputs of the "Slave" flip-flop. This feedback configuration from the slave's output to the master's input gives the characteristic toggle of the JK flip-flop as shown below. Figure 3: Master Slave Flip-Flop The input signals J and K are connected to the gated "master" SR flip-flop which "locks" the input condition while the clock (Clk) input is "HIGH" at logic level "1". As the clock input of the "slave" flip-flop is the inverse (complement) of the "master" clock input, the "slave" SR flip-flop does not toggle. The outputs from the "master" flip-flop are only "seen" by the gated "slave" flip-flop when the clock input goes "LOW" to logic level "0". When the clock is "LOW", the outputs from the "master" flip-flop are latched and any additional changes to its inputs are ignored. The gated "slave" flip-flop now responds to the state of its inputs passed over by the "master" section. Then on the "Low-to-High" transition of the clock pulse the inputs of the "master" flip-flop are fed through to the gated inputs of the "slave" flip-flop and on the "High-to-Low" transition the same inputs are reflected on the output of the "slave" making this type of flip-flop edge or pulse-triggered. Then, the circuit accepts input data when the clock signal is "HIGH", and passes the data to the output on the falling-edge of the clock signal. In other words, the Master-Slave JK Flip- flop is a "Synchronous" device as it only passes data with the timing of the clock signal. Ring Counter: A ring counter is a digital circuit which consists of a series of flip flops connected together in a feedback manner. The circuit is special type of shift register where the output of the last flip-flop is fed back to the input of first flipflop.When the circuit is reset, except one of the flip-flop output, all others are made zero. For n-flip-flop ring counter we have a MOD-n counter. That means the counter has n different states. The block diagram for a 4 bit ring counter is shown below: 3 Micro-Electronics Technologies
  • 4. Class No 03 & 09 Figure 4: Block Diagram of 4-bit Counter. Task:  Making Counter In Software: Apparatus:  DSCHV2-7 installed PC. Procedure:  First of all open the software by clicking on-to the icon .  For the specific gate select the required components by clicking the symbol library icon .  DSCHV2-7 software includes a comprehensive block library, from this library “pmos, nmos, ground, dc source (vdd), button, led (to see the output) “can be selected to draw the circuit just by click-and-drag operations.  To draw the lines between the components click on-to the icon & then join the two components by simple drag operation.  The components attributes can be changed by double clicking on-to the component there by changing the required field.  After completing the circuit diagram simulate the circuit by clicking .  Finally, click to see the timing diagram to verify the truth table. Components used:  NAND Gate  Push Buttons as logic state.  Ground  Output leds  Invertors 4 Micro-Electronics Technologies
  • 5. Class No 03 & 09 Circuit Diagram: Figure 5: 4-Bit Jk Flip-Flop Counter Circuit Some Outputs Shown: Fig A: 5 Micro-Electronics Technologies
  • 6. Class No 03 & 09 Fig B: Fig C: 6 Micro-Electronics Technologies
  • 7. Class No 03 & 09 Timing Diagram: Figure 6 : Timing diagram Conclusion:  From timing diagram it is verified that the counter counted from 0 up to F i-e 4-bit counter.  Hence it is verified that the JK Flip-Flop can be used in combination for counting. 7 Micro-Electronics Technologies