Digital System Module 4 PDF
Digital System Module 4 PDF
Regulation – 2018
Module 4
Module 4:
Simple Flip-Flops Applications : Registers, Binary Ripple Counters, Synchronous Binary Counters,
Counters Based on Shift Registers, Design of a Synchronous Counters, Design of a Synchronous
Mod-n Counters using clocked T, JK, D and SR Flip-Flops (Text 2, Chapter 3).
REGISTERS:
➢ A register is simply a collection of flip-flops taken as an entity. The basic function of a register is
to hold information within a digital system so as to make it available to the logic elements during
computing process.
➢ Since a register consists of finite number of flip-flops and since each flip-flop is capable of storing
a 0 or a 1 symbol, there are only a finite number of 0-1 combinations that can be stored in a
register. Each of these combinations is known as the state or content of the register.
➢ Registers that are capable of moving information position-wise upon the occurrence of a clock
signal are called shift registers. These registers are normally classified by weather they can move
the information in one direction or two directions, ie unidirectional or bidirectional.
Classification of registers:
Based on information can move in one direction or two directions:
1. Unidirectional
2. Bidirectional
1. With a neat logic diagram, explain the operation of 4-bit SISO unidirectional shift register.
Dec. 2014/Jan.2015, 10ES33, 06 Marks
2. Explain SIPO and PISO shift registers with relevant diagrams.
Dec.2017/Jan.2018, 15EC33, 06 Marks
3. Explain with suitable logic and timing diagram.
i. Serial – in serial – out shift register.
ii. Parallel – in parallel – out shift register. June/July 2009, 06ES33, 10 Marks
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 1
Digital System Design-18EC34
Regulation – 2018
Module 4
➢ The Q output each flip-flop is connected to the D input of the flip-flop to its right. The control
inputs of all the flip-flops are connected together to a common synchronizing signal called the
clock.
➢ Thus, upon the occurrence of a positive edge of the clock signal, the content of each flip-flop is
shifted one position to the right. The content of the leftmost flip-flop after the clock signal
depends upon the signal value on the serial-data-in line, and the content of the rightmost flip-flop
prior to the clock signal is lost.
➢ The output from the shift register occurs at the right most flip-flop on the serial-data-out line.
Example:
Clock Serial-in Content of Flip-Flops
Signal Data line Q0 Q1 Q2 Q3
0 1 0 1 1
(Initial Contents)
1 1 1 1 0 1
2 0 0 1 1 0
3 1 1 0 1 1
4 1 1 1 0 1
➢ The serial data shifted in i.e., 1101, becomes available as an output on the serial-data-out line after
four clock pulses.
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 2
Digital System Design-18EC34
Regulation – 2018
Module 4
➢ Since the information is transferred into this register serially, after an appropriate number of shifts
the information is available in parallel. These provides for serial-to-parallel conversion of
information.
➢ By taking the outputs from the individual flip-flops, the register functions as a parallel-in,
parallel-out unidirectional shift register.
Parallel-in/Parallel-out Register:
➢ The parallel-in, parallel-out unidirectional shift register is illustrated in below figure.
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 3
Digital System Design-18EC34
Regulation – 2018
Module 4
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 4
Digital System Design-18EC34
Regulation – 2018
Module 4
7. Explain universal shift register with the help of logic diagram, mode control table.
Dec. 2012, 10ES33, 10 Marks
8. Explain universal shift register with the help of logic diagram, mode control table and symbol.
May/June 10, 06ES33, 09 Marks
9. With a neat circuit diagram, explain the working of a universal shift register.
Dec.07/Jan.08, 06ES33, 08 Marks
10. Describe the working principle of universal shift register with the help of logic diagram and mode
control table. June/July.2017, 15EC33, 08 Marks
➢ These registers are capable of shifting their contents either left or right depending upon the signals
present on appropriate control input lines. This register is also known as universal shift register as
shown below.
➢ Each of these operations is the result of the occurrence of positive edge on the clock line. In
addition, the register is cleared asynchronously if a logic-0 is applied to the line labeled CLEAR.
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 5
Digital System Design-18EC34
Regulation – 2018
Module 4
➢ Upon the occurrence of the positive-edge signal on the clock line, the register shifts its contents
one position to the right.
➢ Similarly, the remaining three operations can be verified.
➢ Registers are available commercially as MSI components. In these circuits, the control lines for
the clock inputs of the flip-flops are connected together and appropriate logic is included to
provide various capabilities. Eg: unidirectional or bidirectional shifting,
1. Design a 4-bit register using positive edge triggered D flip flops to operate as indicated in the table
below: June. 2012, 10ES33, 06 Marks
Mode Select:
Register Operation:
𝐚𝟏 𝐚𝟎
0 0 Hold
0 1 Clear
1 0 Complement contents
1 1 Circular right shift
2. Design a 4-bit register using positive edge triggered D flip-flops to operate as indicated in the
table below: Dec. 2013/Jan.2014, 10ES33, 08 Marks
Mode Select:
Register Operation:
a1 a0
0 0 Hold
0 1 Synchronous clear
1 0 Complement contents
1 1 Circular shift right
COUNTERS:
➢ A counter is another example of a register. Its primary function is to produce a specified output
pattern sequence, so it is also called as pattern generator.
➢ This pattern sequence might correspond to the number of occurrences of an event or it might be
used to control various portions of a digital system.
➢ Each of the 0-1 combinations that are stored in flip-flops that comprise the counter, ie output
pattern, is known as a state of the counter.
➢ The total number of states is called its modulus. Thus, if a counter has m distinct states, then it is
called a modulus-m counter or mod-m counter.
➢ The order in which the states appear is referred to as its counting sequence. The counting sequence
is often depicted by a directed graph.
Fig: 4 – Bit Ripple Up Counter Using Negative Edge Triggered JK Flip Flops
➢ Since this is a 4-bit up-counter, its modulus is 24 = 16 and its counting sequence is from 0000(2)
to 1111(2) . The output of the counter appears at the Q output terminals of the four flip-flops.
➢ The input to the counter is count enable signal and a series of count pulses applied to the flip-flop
associated with the lowest-order binary digit.
➢ As long as count enable signal is logic-1, the Q0 flip-flop changes state on each positive-edge of a
count pulse. The control input C, of the remaining flip-flops is connected to Q output of its
previous-order flip-flop.
➢ Thus, when the Qi−1 flip-flop output changes from 1 to 0, then Qi−1 output changes from 0 to 1, a
positive triggering edge occurs at the control input of the Qi flip-flop causing it to toggle.
Operation: Counting Sequence:
➢ The counter is assumed to be initially in its 0000 state and the count Q 3 Q 2 Q1 Q 0
enable signal is logic-1. 0 0 0 0
➢ Upon the occurrence of the positive edge of the first count pulse, Q0 0 0 0 1
changes from 0 to 1, Q0 output changes from 1 to 0 ie negative edge, 0 0 1 0
hence Q1 flip-flop is not affected. Then, the state of the counter is now 0 0 1 1
0 1 0 0
0001.
0 1 0 1
➢ Upon the occurrence of the positive edge of the 2nd count pulse, Q0 0 1 1 0
changes from 1 to 0, Q0 output changes from 0 to 1 ie positive edge, 0 1 1 1
hence Q1 flip-flop changes from 0 to 1, Q1 output changes from 1 to 0 1 0 0 0
ie., negative edge, hence Q2 flip-flop is not affected. Then, the state of 1 0 0 1
the counter is now 0010. 1 0 1 0
rd
➢ Upon the occurrence of the positive edge of the 3 count pulse, Q0 1 0 1 1
1 1 0 0
flip-flop changes from 0 to 1, Q0 output changes from 1 to 0 ie., 1 1 0 1
negative edge, hence Q1 flip-flop is not affected, Q2 flip-flop is also 1 1 1 0
not affected, since no transition in Q1 flip-flop. Then, the state of the 1 1 1 1
counter is now 0011.
➢ Similarly, other states can be analyzed and the counting sequence and timing diagram is given
below.
Fig: Timing Diagram of Four-bit binary ripple Up-counter – Positive Edge Triggered
Fig: Timing Diagram of Four-bit binary ripple Up-counter – Negative Edge Triggered
➢ The propagation delays are associated with each flip-flops, these delays are not included in timing
diagram for simplicity.
➢ The above binary counter is also called as ripple counter since a change in state of the Qi−1 flip-
flop is used to toggle Qi flip-flop. Thus, the effect of a count pulse must ripple through the
counter. Ripple counters are also referred as asynchronous counters.
➢ There is a propagation delay between the input and output of a flip-flop, this rippling behavior
affects the overall time delay between the occurrence of a count pulse and the stabilized count
appears at the output terminals.
➢ The worst case occurs when the counter goes from its 11…1-state to its 00…0-state, since toggle
signals must propagate through the entire length of the counter.
➢ For an n-stage binary ripple counter, the worst case settling time becomes n x 𝑡𝑝𝑑 , where 𝑡𝑝𝑑 : is
the propagation delay time associated with each flip-flop.
Fig: Timing Diagram of Four-bit binary ripple down-counter – Positive Edge Triggered
9. Draw the circuit of a 3 BIT, asynchronous, down counter using negative edge triggered JK flip
flops and draw the timing waveforms. Dec. 2011, 10ES33, 05 Marks
Solution:
Fig: 3 – Bit Asynchronous Counter Using Negative Edge Triggered JK Flip Flops
Fig: Timing Diagram of 3-Bit Binary Ripple Down-Counter – Negative Edge Triggered
10. Explain the working principle of a mod-8 binary ripple counter, configured using positive edge
triggered T-FF. Also draw the timing diagram. Dec.08/Jan.09, 06ES33, 08 Marks
Solution:
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 10
Digital System Design-18EC34
Regulation – 2018
Module 4
Fig: Timing Diagram of 3-Bit Binary Ripple Down-Counter – Positive Edge Triggered
11. Design mod-11 asynchronous counter using JK flip flops. June. 2012, 10ES33, 06 Marks
Solution:
Fig: Mod – 11 Asynchronous Counter Using Negative Edge Triggered JK Flip Flops
Counting Sequence:
Q3 Q2 Q1 Q0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
1 0 1 0 Fig: Timing Diagram of Mod – 11 Asynchronous Counter– Negative Edge
0 0 0 0 Triggering
Fig: Mod – 10 Asynchronous Counter Using Negative Edge Triggered T Flip Flops
Counting Sequence:
Q3 Q2 Q1 Q0
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
0 0 0 0
0 0 0 1 Fig: Timing Diagram of Divide – by – 10 Counter – Negative Edge
Triggered
13. Design mod-6 ripple counter using T flip-flops. June/July 2018, 15EC33, 06 Marks
Solution:
Fig: Mod – 6 Ripple Counter Using Negative Edge Triggered T Flip Flops
Counting Sequence:
Q2 Q1 Q0
0 0 0
0 0 1
0 1 0
0 1 1
1 0 0
1 0 1
0 0 0
0 0 1
Availaible at: VTU HUB (Android App)
Fig: Timing Diagram of Mod – 6 Counter – Negative
Edge Triggered
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 12
Digital System Design-18EC34
Regulation – 2018
Module 4
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 13
Digital System Design-18EC34
Regulation – 2018
Module 4
➢ This observation leads the variation of synchronous counter as shown above. Each AND-gate
requires only two inputs, and the output of each flip-flop is needed as input to the next stage
AND-gate. The propagation delays are incurred between the positive-edges of the count pulses
due-to serial connection of AND-gates. All the flip-flops change state simultaneously after the
propagation delay time of a flip-flop.
➢ The counter speed is based on the availability of the next count at the output terminals, hence
synchronous counters are faster than asynchronous counter.
➢ In synchronous counter, the rate at which the count pulses can be applied is determined by the
gate delays and the flip-flop propagation delay time, and in asynchronous counter, the allowable
count pulse rate is determined by simply the 1st stage of the counter.
➢ This implies that an asynchronous counter is very fast relative to its inputs, ie once the 1st stage
flip-flop changes the state it can accept the next count pulse, even the change has not propagated
through the rest of the counter. However, until the rippling effect is completed the count is not
available for use.
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 14
Digital System Design-18EC34
Regulation – 2018
Module 4
➢ As shown in fig, JK flip-flops, rather than T flip-flops, are used to facilitate the handling of the
parallel inputs.
➢ Two enable signals are utilized. One to allow the parallel loading of the data inputs D0 , D1 , D2 ,
and D3 , and second to provide for counting. Both are synchronized with the positive edges of the
count pulses.
➢ If Load Enable = 1, regardless of the value on count enable line, the signal values on the data
inputs D0 , D1 , D2 , and D3 are entered into the flip-flops upon the occurrence of the positive edge
of the count pulse.
➢ If Load Enable = 0, and Count Enable = 1; the network behaves as a binary counter. If Load
Enable=0, and Count Enable = 0; the count pulses are ignored and counter retain its current state,
since both J = K = 0. The below figure shows the logic diagram.
➢ The below figure shows a mod-10 counter and its counting sequence.
➢ AND-gate is used to detect the count 1001, and output is connected to the load enable, the counter
is loaded with 0000 ie signal values on the Di inputs upon the occurrence of the next positive edge
of count pulse.
➢ The carry out (CO) = 1, whenever the counter state is 1111 and the counter is in count mode, ie
Count Enable=1, and Load Enable=0, is used for constructing larger binary counters by cascading
two or more 4-bit binary counters.
Counting Sequence:
Q3 Q2 Q1 Q1
0 0 0 0
0 0 0 1
0 0 1 0
0 0 1 1
0 1 0 0
0 1 0 1
0 1 1 0
0 1 1 1
1 0 0 0
1 0 0 1
0 0 0 0
0 0 0 1
Fig: Logic Diagram
➢ The below fig shows an 8-bit counter, CO corresponds to the least significant digits is used as
count enable input to the counter for most significant digits.
Fig: 8 – Bit Synchronous Counter constructed from Two 4 – Bit Synchronous Counter.
➢ Many different types of MSI Counters are commercially available.
Ring-counter:
1. Explain Mod-4 ring counter using D flip-flop. June/July.2017, 15EC33, 06 Marks
➢ It is a circular shift register, with only one flip-flop is in 1-state, while the others are in 0-states.
Upon the occurrence of each count pulse, the single 1 is shifted to its adjacent flip-flop.
➢ A ring counter consists of n flip-flops has only n-states in its counting sequence. The below figure
shows the mod-4 ring counter and its counting sequence.
Counting Sequence:
QA QB QC QD
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
1 0 0 0
Switch-tail Counter:
2. Explain Johnson counter with its circuit diagram and timing diagram.
June/July 2009, 06ES33, 08 Marks
3. Explain Jonson counter, with its circuit diagram, and timing diagram.
May/June 10, 06ES33, 08 Marks
4. With the help of a schematic diagram, explain how a serial shift register can be transformed into a
i) Ring counter ii) Johnson counter. June/July.2016, 10ES33, 04 Marks
5. Give the circuit of a 4 bit JOHNSON counter using negative edge triggered D – flip flops. Draw
the timing waveforms with respect to clock starting with an initial state of Q3 Q2 Q1 Q0 = 0000.
What is the modulus of this counter. Dec. 2011, 10ES33, 08 Marks
6. Draw the logic diagram of mod-8 twisted ring counter. Write its counting sequence.
Dec. 2011, 06ES33, 06 Marks
7. Design mod 8 counter using shift register. Use D flip-flop to built register circuit. Explain the
operation using function table. Dec.2016/Jan.2017, 15EC33, 06 Marks
8. With the help of a diagram, explain the following with respect to shift register.
i. Parallel in serial out
ii. Ring counter and twisted ring counter. June/July 2013, 10ES33, 08 Marks
9. With help of a diagram, explain the following with respect to shift register:
i. Parallel in serial out
ii. Ring counter and twisted ring counter. Dec.09/Jan.10, 06ES33, 08 Marks
10. With the help of a suitable example, explain the following operations in a shift register. i) SISO ii)
Availaible
PISO iii)at:Twisted
VTUring HUB (Android App)
counter. June/July 2008, 06ES33, 10 Marks
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 16
Digital System Design-18EC34
Regulation – 2018
Module 4
Solution:
➢ It is a variation of the ring counter, it is also called as Johnson counter or twisted ring counter, as
shown below.
Counting Sequence:
AND-gate
QA QB QC QD
Inputs:
0 0 0 0 QA QD
1 0 0 0 QA QD
1 1 0 0 QB QC
1 1 1 0 QC QD
1 1 1 1 QA QD
0 1 1 1 QA QB
Fig: Mod – 8 JOHNSON Counter
0 0 1 1 QB QC
0 0 0 1 QC QD
0 0 0 0
➢ The complement of the right most flip-flop serves as the input to the left most flip-flop in the shift
register configuration. There are 2n states occur in the counting sequence of an n-state counter.
➢ In counting sequence, the underlined pair of bits uniquely determine a state. Only 2-input AND-
gate, whose logic expression is also given in the figure, is required to obtain a decoded output.
This counter having even number of states.
➢ The below figure shows a ring counter having odd number of states. It is achieved by connecting
QC QD to the input of the left most flip-flop. Again, each state is detectable by use of a single 2-
input AND-gate.
11. Describe the block diagram of a MOD-7 twisted ring counter and explain its operation with the
count sequence table and decoding logic used to identify the various states.
Dec.2015/Jan.2016, 10ES33, 08 Marks
12. Describe the block diagram of a mod 7 twisted ring counter and explain its operation. Give the
count sequence table and the decoding logic used to identify the various states.
June/July 2011, 06ES33, 10 Marks
Counting Sequence:
AND-gate
QA QB QC QD
Inputs:
0 0 0 0 QA QD
1 0 0 0 QA QD
1 1 0 0 QB QC
1 1 1 0 QC QD
0 1 1 1 QA QB
0 0 1 1 QB QC
Fig: Mod – 7 JOHNSON Counter 0 0 0 1 QC QD
0 0 0 0
➢ The general structure is given below. The 3 clocked JK flip-flops have common count pulse
applied to their control inputs, C. The count pulse may be clock signal or they may originate from
some other source.
➢ The current state of the counter is applied to the logic network. The function of the logic network
is to generate the appropriate signals for J & K terminals of the clocked flip-flops, so that the
specified next-state in the counting sequence results upon the occurrence of the triggering-edge of
the count pulse.
➢ So the appropriate logic network is to be designed. The logic network can be described by six
Boolean expressions one for each of the six inputs to the 3 clocked flip-flops in terms of Boolean
variables Q1 , Q2 , and Q3 , that corresponds to current state of the counter.
➢ To obtain these expressions, a truth table for logic network, called excitation table is to be
developed first, and then simplified Boolean expressions are obtained using K-Map.
Fig: General structure of a synchronous mod-6 counter using positive edge triggered JK flip-
flops.
Excitation Table:
➢ It has 3 sections labeled as, Present-State, Next-State, and Flip-Flop inputs. The counting
sequence is listed in the present-state section, the desired next-state for each present-state is
entered in the next-state section. The 3rd section requires to develop a application table of a flip-
flop.
Present-State Next-State Flip-Flop inputs
+ + +
Q1 Q2 Q3 Q1 Q2 Q3 J1 K1 J2 K 2 J3 K 3
0 0 0 0 0 1 0 0 X 1 X 0 X
2 0 1 0 0 1 1 0 X X 0 1 X
3 0 1 1 1 1 0 1 X X 0 X 1
6 1 1 0 1 0 1 X 0 X 1 1 X
5 1 0 1 0 0 1 X 1 0 X X 0
1 0 0 1 0 0 0 0 X 0 X X 1
➢ It is necessary to consider the flip-flop next-state table as given below in Table (a), and application
table of JK flip-flop is given in Table (b).
(a) Next State Table
J K Q Q+
0 0 0 0 (b) Application Table:
0 0 1 1 Q Q+ J K
0 1 0 0 0 0 0 X
0 1 1 0 0 1 1 X
1 0 0 1 1 0 X 1
1 0 1 1 1 1 X 0
1 1 0 1
1 1 1 0
➢ Now it is simple to determine the logic signals that must be applied to 3 JK Flip-Flops, in order to
produce the present-state to next-state transition specified in each row.
Example: Q1 Q2 Q3 = 000, Q+ + +
1 Q 2 Q 3 = 010
Q1 must remains in 0-state, hence J1 = 0, K1 = X
Q2 must go from its 0-state to 1-state, hence J2 = 1, K 2 = X
Q3 must remains in 0-state, hence J3 = 0, K 3 = X
➢ The inputs to the logic network corresponds to present-section of the excitation table, and the
outputs from the network correspond to the flip-flop inputs section of the excitation table.
➢ Thus, 1st and 3rd sections of the excitation table becomes the truth table for the logic network.
Using these two sections, the six k-maps can be drawn as shown below. These six maps
corresponds to the six flip-flop input functions, and a cell of the map corresponds to the present-
state of the counter.
Boolean Expressions for Inputs to Flip-Flops Using K-Map:
J1 = Q 2 Q 3 K1 = Q 2
J2 = Q 3 K 2 = Q1
J3 = Q 2 K 3 = Q1
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 22
Digital System Design-18EC34
Regulation – 2018
Module 4
S2 = Q 2 Q 3 R 2 = Q1
S3 = Q 2 Q 3 R 3 = Q1 Q 3
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 23
Digital System Design-18EC34
Regulation – 2018
Module 4
D1 = Q 2 Q 3 + Q1 Q 2 D2 = Q 2 Q 3 + Q 1 Q 2
D3 = Q1 + Q2 Q3
T1 = Q 2 Q 3 + Q1 Q 2 T2 = Q 2 Q 3 + Q1 Q 2
T3 = Q2 + Q1 Q3
University Questions:
1. Design a synchronous Mod – 6 counter using JK flip – flop.
Dec. 2013/Jan.2014, 10ES33, 08 Marks
2. Design a synchronous Mod-6 counter using clocked JK flip flop.
Dec.07/Jan.08, 06ES33, 08 Marks
3. Design a cyclic mod 6 synchronous binary counter using JK flip flop. Give the state diagram,
transition table and excitation table. Dec.08/Jan.09, 06ES33, 10 Marks
4. Design mod-6 synchronous counter using D flip-flops. June/July.2016, 10ES33, 10 Marks
5. Design divide by 6 synchronous counter using T flip-flops. Write state table and reduce the
expression using K-map. June/July 2018, 15EC33, 06 Marks
6. Design a synchronous Mod-6 counter using clocked T flip-flop.
June/July.2017, 15EC33, 10 Marks
Solution:
State Table:
Present Next
State State
S0 S1
S1 S2
S2 S3
S3 S4
S4 S5
S5 S0
Fig: State Diagram
J2 = Q1 Q 0 K 2 = Q0
J1 = Q 2 Q 0 K1 = Q 0
J0 = 1 K0 = 1
D2 = Q 1 Q 0 + Q 2 Q 0 D1 = Q1 Q 0 + Q 2 Q1 Q 0
D0 = Q1 Q0 + Q2 Q1 Q0
T2 = Q 2 Q 0 + Q1 Q 0 T1 = Q 2 Q 0 + Q1 Q 0
T0 = 1
J2 = Q1 Q 0 K2 = 1
J1 = Q 0 K1 = Q 0
J0 = Q 2 K0 = 1
10. Realize a 3 bit synchronous up counter using JK flip-flop. Write excitation table, transition table
and logic diagram. Dec.2017/Jan.2018, 15EC33, 10 Marks
11. Design a cyclic mod 8 synchronous binary counter using JK flip-flop. Give state diagram,
transition table and excitation table. Dec.2017/Jan.2018, 15EC33, 08 Marks
Solution:
Transition and Excitation Table: Application
PS NS Flip-Flop Inputs Table:
+
Q2 Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0
+ +
Q Q+ J K
0 0 0 0 0 0 1 0 X 0 X 1 X 0 0 0 X
1 0 0 1 0 1 0 0 X 1 X X 1 0 1 1 X
2 0 1 0 0 1 1 0 X X 0 1 X 1 0 X 1
3 0 1 1 1 0 0 1 X X 1 X 1 1 1 X 0
4 1 0 0 1 0 1 X 0 0 X 1 X
5 1 0 1 1 1 0 X 0 1 X X 1
6 1 1 0 1 1 1 X 0 X 0 1 X
7 1 1 1 0 0 0 X 1 X 1 X 1
J2 = Q1 Q 0 K 2 = Q1 Q 0
J1 = Q 0 K1 = Q 0
J0 = 1 K0 = 1
11. Design a cyclic modulo – 8 synchronous binary counter, using JK flip flops, to count the number
of occurrences of an input, i.e, the number of times it is a 1. The input variable x must be
coincident with the clock to be counted. The counter is to count in binary. The design should
clearly indicating the following:
i. State diagram and state table. Dec. 2010, 06ES33, 05 Marks
ii. Transition table and excitation table. Dec. 2010, 06ES33, 05 Marks
iii. Karnaugh maps. Dec. 2010, 06ES33, 05 Marks
iv. Logic diagram. Dec. 2010, 06ES33, 05 Marks
12. Design a cyclic modulo-8 synchronous counter using JK flip flop that will count the number of
occurrences of a input; that is, the number times it is a 1. The input variable X must be coincident
with the clock to be counted. The counter is to count in binary.
Dec.07/Jan.08, 06ES33, 12 Marks
Solution:
State Table: Application Table:
Present Next Q Q+ J K
State State 0 0 0 X
S0 S1 0 1 1 X
S1 S2 1 0 X 1
S2 S3 1 1 X 0
S3 S4
S4 S5
S5 S6
S6 S7
S7 S0
J2 = XQ1 Q0 K 2 = XQ1 Q 0
J1 = XQ 0 K1 = XQ 0
J0 = X K0 = X
13. Design a counter circuit for the following sate table. Follow the standard steps for design.
Dec.2016/Jan.2017, 15EC33, 10 Marks
D2 = Q1 Q 0 + XQ 2 + Q 2 Q 0 + XQ 2 Q 0 D1 = XQ1 + XQ1 + Q1 Q 0
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 36
Digital System Design-18EC34
Regulation – 2018
Module 4
J2 = XQ 0 K 2 = X + Q1
J1 = X + Q 0 K1 = XQ 0 + XQ 2 + X Q 0
J0 = XQ1 + Q 2 Q1 K 0 = X Q 2 + XQ 2
14. Design and implement a synchronous 3 bit up/down counter using J-K flip-flops.
June/July.2014, 10ES33, 10 Marks
Solution:
State Table: Application Table:
Present Next State Q Q+ J K
State X=0 X=1 0 0 0 X
S0 S7 S1 0 1 1 X
S1 S0 S2 1 0 X 1
S2 S1 S3 1 1 X 0
S3 S2 S4
S4 S3 S5
S5 S4 S6
S6 S5 S7
S7 S6 S0
Fig: State Diagram
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 39
Digital System Design-18EC34
Regulation – 2018
Module 4
15 1 1 1 1 0 0 0 X 1 X 1 X 1
J2 = ∑m(0, 11) + ∑d(4, 5, 6, 7, 12, 13, 14, 15)
K 2 = ∑m(4, 15) + ∑d(0, 1, 2, 3, 8, 9, 10, 11)
J1 = ∑m(0, 4, 9, 13) + ∑d(2, 3, 6, 7, 10, 11, 14, 15)
K1 = ∑m(2, 6, 11, 15) + ∑d(0, 1, 4, 5, 8, 9, 12, 13)
J0 = ∑m(0, 2, 4, 6, 8, 10, 12, 14) + ∑d(1, 3, 5, 7, 9, 11, 13, 15)
K 0 = ∑m(1, 3, 5, 7, 9, 11, 13, 15) + ∑d(0, 2, 4, 6, 8, 10, 12, 14)
J2 = X Q1 Q 0 + XQ1 Q 0 K 2 = X Q1 Q 0 + XQ1 Q 0
J1 = X Q 0 + XQ 0 K1 = X Q 0 + XQ 0
J0 = 1 K0 = 1
15. Design a synchronous counter using JK flip flops to count the sequence 0, 1, 2, 4, 5, 6, 0, 1, 2 use
the state diagram and state table. June/July 2013, 10ES33, 10 Marks
16. Design a synchronous counter using JK flip-flops to count the sequence 0, 1, 2, 4, 5, 6, 0, 1, 2.
Use state diagram and state table. June/July 2018, 15EC33, 08 Marks
17. Design a synchronous counter using JK flip flops to count in the sequence 0, 1, 2, 4, 5, 6, 0, 1, 2…
Use state diagram and state table. June/July 2009, 06ES33, 12 Marks
Solution:S0
State Diagram: State Table: Application Table:
Present Next Q Q+ J K
State State 0 0 0 X
S0 S1 0 1 1 X
S1 S2 1 0 X 1
S2 S4 1 1 X 0
S4 S5
S5 S6
S6 S0
Boolean Expressions:
J2 = Q1 K 2 = Q1
J1 = Q 0 K1 = 1
J0 = Q1 K0 = 1
18. Design a counter using JK flip flops whose sequence is {0, 1, 4, 6, 7, 5, 0, …..} by obtaining
minimal sum equations. June. 2012, 10ES33, 10 Marks
19. Design a counter using JK – flip flops whose counting sequence is 000, 001, 100, 110, 111, 101,
000 etc. by obtaining its minimal sum equations. June/July 2008, 06ES33, 08 Marks
20. Design a counter using JK flip flops whose counting sequence is 000, 001, 100, 110, 111, 101,
000 etc., by obtaining its minimal sum equations. May/June 10, 06ES33, 10 Marks
Solution:
Transition and Excitation Table: Application
PS NS Flip-Flop Inputs Table of JK Flip-
Q2 + + +
Q1 Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 Flop:
0 0 0 0 0 0 1 0 X 0 X 1 X Q Q+ J K
1 0 0 1 1 0 0 1 X 0 X X 1 0 0 0 X
4 1 0 0 1 1 0 X 0 1 X 0 X 0 1 1 X
6 1 1 0 1 1 1 X 0 X 0 1 X 1 0 X 1
7 1 1 1 1 0 1 X 0 X 1 X 0 1 1 X 0
5 1 0 1 0 0 0 X 1 0 X X 1
Boolean Expressions:
J2 = Q 0 K 2 = Q1 Q 0
J1 = Q 2 Q 0 K1 = Q 0
J0 = Q1 K 0 = Q1
21. Design and implement a synchronous counter to count the sequence 0 – 3 – 2 – 5 – 1 – 0 using
negative edge triggered JK flip flops. Dec. 2011, 10ES33, 12 Marks
Solution:
Transition and Excitation Table: Application Table
PS NS Flip-Flop Inputs of JK Flip-Flop:
Q2 Q1 Q0 Q+ 2 Q +
1 Q +
0 J2 K2 J1 K1 J0 K0 Q Q+ J K
0 0 0 0 0 1 1 0 X 1 X 1 X 0 0 0 X
3 0 1 1 0 1 0 0 X X 0 X 1 0 1 1 X
2 0 1 0 1 0 1 1 X X 1 1 X 1 0 X 1
5 1 0 1 0 0 1 X 1 0 X X 0 1 1 X 0
1 0 0 1 0 0 0 0 X 0 X X 1
Boolean Expressions:
J2 = Q1 Q 0 K2 = 1
J1 = Q 0 K1 = Q 0
J0 = 1 K 0 = Q2
22. Design Mod-6 synchronous counter using JK flip-flop. The sequence is 000, 001, 011, 100, 101,
111, .. 000. Dec.2016/Jan.2017, 15EC33, 07 Marks
Solution:
Transition and Excitation Table: Application
PS NS Flip-Flop Inputs Table of JK Flip-
Q2 Q1 + + +
Q0 Q2 Q1 Q0 J2 K2 J1 K1 J0 K0 Flop:
0 0 0 0 0 0 1 0 X 0 X 1 X Q Q+ J K
1 0 0 1 0 1 1 0 X 1 X X 0 0 0 0 X
3 0 1 1 1 0 0 1 X X 1 X 1 0 1 1 X
4 1 0 0 1 0 1 X 0 0 X 1 X 1 0 X 1
5 1 0 1 1 1 1 X 0 1 X X 0 1 1 X 0
7 1 1 1 0 0 0 X 1 X 1 X 1
Boolean Expressions:
J2 = Q1 K 2 = Q1
J1 = Q 0 K1 = 1
J0 = 1 K 0 = Q1
23. Design and implement a synchronous BCD counter using J-K FFS.
Dec. 2012, 10ES33, 10 Marks
24. Design a synchronous counter to count from 0000 to 1001 using JK flip-flops.
June/July.2014, 10ES33, 10 Marks
Solution:
Transition and Excitation Table: Application
PS NS Flip-Flop Inputs Table of JK Flip-
+ + + +
Q3 Q2 Q1 Q0 Q3 Q2 Q1 Q0 J3 K3 J2 K2 J1 K1 J0 K0 Flop:
0 0 0 0 0 0 0 0 1 0 X 0 X 0 X 1 X Q Q+ J K
1 0 0 0 1 0 0 1 0 0 X 0 X 1 X X 1 0 0 0 X
2 0 0 1 0 0 0 1 1 0 X 0 X X 0 1 X 0 1 1 X
3 0 0 1 1 0 1 0 0 0 X 1 X X 1 X 1 1 0 X 1
4 0 1 0 0 0 1 0 1 0 X X 0 0 X 1 X 1 1 X 0
5 0 1 0 1 0 1 1 0 0 X X 0 1 X X 1
6 0 1 1 0 0 1 1 1 0 X X 0 X 0 1 X
7 0 1 1 1 1 0 0 0 1 X X 1 X 1 X 1
8 1 0 0 0 1 0 0 1 X 0 0 X 0 X 1 X
9 1 0 0 1 0 0 0 0 X 1 0 X 0 X X 1
Boolean Expressions:
J3 = Q 2 Q1 Q 0 K 3 = Q0
J2 = Q1 Q 0 K 2 = Q1 Q 0
J1 = Q 3 Q 0 K1 = Q 0
J0 = 1 K0 = 1
25. Design a synchronous 5421 code sequence using positive edge triggered D flip flop with
minimum combinational circuits. June. 2012, 10ES33, 10 Marks
Solution:
Transition and Excitation Table: Application
Present State Next State FF Inputs Table:
+ + +
Q3 Q2 Q1 Q0 Q3 Q2 Q1 Q0 D3 D2 D1 +
D0 Q Q+ D
0(0) 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0
1(1) 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1
2(2) 0 0 1 0 0 0 1 1 0 0 1 1 1 0 0
3(3) 0 0 1 1 0 1 0 0 0 1 0 0 1 1 1
4(4) 0 1 0 0 1 0 0 0 1 0 0 0
5(8) 1 0 0 0 1 0 0 1 1 0 0 1
6(9) 1 0 0 1 1 0 1 0 1 0 1 0
7(10) 1 0 1 0 1 0 1 1 1 0 1 1
8(11) 1 0 1 1 1 1 0 0 1 1 0 0
9(12) 1 1 0 0 0 0 0 0 0 0 0 0
Boolean Expressions:
D3 = Q 3 Q 2 + Q 3 Q 2 = Q 3 ⊕ Q 2 D2 = Q 1 Q 0
D1 = Q1 Q 0 + Q1 Q 0 = Q1 ⊕ Q 0 D0 = Q 2 Q 0
26. Design a synchronous mod – 6 counter whose counting sequence is 0, 1, 2, 4, 6, 7 and repeat, by
obtaining its minimal – sum equations. Use positive – edge – triggered D flip – flops.
Dec. 2011, 06ES33, 10 Marks
Solution:
Transition and Excitation Table: Application Table of
PS NS Flip-Flop Inputs D Flip-Flop:
Q2 Q1 Q0 Q+ 2
+
Q1 Q0 +
D2 D1 D0 Q Q+ D
0 0 0 0 0 0 1 0 0 1 0 0 0
1 0 0 1 0 1 0 0 1 0 0 1 1
2 0 1 0 1 0 0 1 0 0 1 0 0
4 1 0 0 1 1 0 1 1 0 1 1 1
6 1 1 0 1 1 1 1 1 1
7 1 1 1 0 0 0 0 0 0
Boolean Expressions:
D2 = Q 2 Q 1 + Q 1 Q 0 D1 = Q 2 Q 0 + Q 2 Q 0 = Q 2 ⊕ Q 0
D0 = Q 2 Q 1 Q 0 + Q 2 Q 1 Q 0
27. In the figure shown in Fig.Q.6(c) sketch the counting sequence. Assume both the flip flops are
cleared initially. Dec. 2011, 06ES33, 04 Marks
Solution:
CLK Q2 Q1 J2 = Q1 K 2 = Q1 J1 = Q2 K1 = Q2
0 0 0 1 1 0 0
1 1 0 1 1 1 1
2 0 1 0 0 0 0
3 0 1 0 0 0 0
Availaible at: VTU HUB
4 0 (Android
1 0 App) 0 0 0
Prepared by: Halesha H R & Aruna R Sri Sairam College of Engineering Anekal. Page | 51
Digital System Design-18EC34
Regulation – 2018
Module 4
28. Compare synchronous and ripple counters. Dec. 2011, 10ES33, 03 Marks
29. Compare synchronous and asynchronous counter. Dec. 2014/Jan.2015, 10ES33, 04 Marks
30. Compare synchronous and asynchronous counters. June/July 2018, 15EC33, 04 Marks
Solution:
Asynchronous Counter (Ripple counter): Synchronous Counter:
1. Clock input is applied to LSB FF. The 1. Clock input is common to all FF.
output of1st FF is connected as clock to
next FF.
2. All flip-flops are toggle flip-flop. 2. Any flip-flop can be used.
3. Speed depends upon number flip-flops 3. Speed is independent of number of flip-
1 1
used for n bit. 𝑓𝑚𝑎𝑥 = n x t flops used. 𝑓𝑚𝑎𝑥 = t
p p
4. No extra logic gates are required. 4. Logic gates are required based on
design.
5. Cost is less. 5. Cost is more.
Self-Correcting Counters:
31. Write the state diagram for Mod-5 self correcting counter and briefly explain. The sequence is
000, 001, 101, 110, 111, 000. Dec.2016/Jan.2017, 15EC33, 03 Marks