Unit 4 Updated
Unit 4 Updated
Present Present
0 1
0 1
1
1 0
1 1
0
1
0 1
0 1
0
1
1 0
0
1
1 0
0 1
0 1
1
0
0
1
0 0
D - Latch
=0 0 Memory
0
X 0
0 S
1 1 R 0
1
1 0 1
0
=1 0 Memory
0
1 1 0
0
0 S
0
0 0 R 1
1
1 0 1 0
=1 0 Memory
0
0 1
1 1
1 1 S
1 1 Qn=0 0 0
0
1 1
Any input is 0 output is 1
0 Qn’=1
1
0
0 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 1 Qn+1=0 Qn=0 0 0
0
1 1
Any input is 0 output is 1
0 Qn’=1
1
0
0 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn=1 0 0
0
0 1
Any input is 0 output is 1
1 Qn’=0
0
1 0
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn+1=1 Qn=1 0 0
0
0 1 1
Any input is 0 output is 1
1 Qn’=0
0
1 0
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 1 Qn=0 0 0
0
1 1 1
Any input is 0 output is 1
0
1
0 Qn’=1
1
1 1
0
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 1 Qn+1=0 Qn=0 0 0
0
1 1 1
Any input is 0 output is 1
0 0
1
0 Qn’=1
1
0 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn=1 0 0
0
1 1 1
Any input is 0 output is 1
0 0
1
1 Qn’=0
1
0 1
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn+1=0 Qn=1 0 0
0
1 1 1
Any input is 0 output is 1
0 0
1 0
1 Qn’=0
1
0 1
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 0 Qn=0 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=1 0
0
0 1
1
0 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 0 Qn+1=1 Qn=0 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=1 0 1
0
0 1
1
0 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn=1 0 0
1
0 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=0 0 1
1
0 1
0
1 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn+1=1 Qn=1 0 0
1
0 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=0 0 1
1
0 1 1
0
1 1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 0 Qn=0 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=1 0 1
0
1 1 1
1
0 1
0
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
1 0 Qn+1=1 Qn=0 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=1 0 1
0
1 1 1
1
0 1
0 1
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn=1 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=0 0 1
1
1 1 1
1
1 0
0 1
1
JK Latch
• JK latch has two inputs J and K.
• JK latch is just like SR latch, but it eliminates
the undefined state of SR latch.
0 1 Qn+1=0 Qn=1 0 0
1
1 1 1
Any input is 0 output is 1
0 0
1 0
Qn’=0 0 1
1
1 1 1
1
1 0
0 1
JK Latch
J K Qn+1 State
0 0 Qn No
Change
0 1 0 Reset
1 0 1 Set
1 1 Qn’ Toggle
Latch
• Latches are the basic memory elements for storing information.
• One latch or flip-flop can store one bit of information.
• Latches, their outputs changes immediately when their inputs change.
• There are basically four main types of latches and flip-flops:
• SR Latch
• D Latch
• JK Latch
• T Latch
T-Latch
1 1 Qn+1
0
0 1
0
0
1 1
1
0
1 1 Qn+1=0
0
0 1
0
0
0
1 1
1
0
T-Latch
0 1 Qn+1=1
1
0 0
0
0 1
1
0
0 0
1
1
T-Latch
1 0 Qn+1=1
0
1 1
0
1 1
1
0
1
1 1
1
0
T-Latch
0 1 Qn+1=0
1
1 1
0
No change
1 1
1
1
1 Toggles
1 0
0 0
1
Construction of SR Flip Flop Using NAND Gates
1
0
0 1 0
1
1
0
1 Truth Table of SR Flipflop
Clk S R Q Q’
1 0 0 Mem Mem Memo
ry
1 0 1 0 1 Reset
1 1 0
1 1 1
1. Circuit Diagram of SR-Flip Flop
2. Working of SR-Flip Flop
3. Rewrite Truth Table in terms of Qn
2. Working of SR Flip flop (present state)& Qn+1(next state)
4. Characteristics Table of SR-Flip Flop
5. Characteristic Equation
6. Excitation Table
1 0 1
1
0
1
0 Truth Table of SR Flipflop
Clk S R Q Q’
1 0 0 Mem Mem Memo
ry
1 0 1 0 1 Reset
1 1 0 1 0 Set
1 1 1
1. Circuit Diagram of SR-Flip Flop
2. Working of SR-Flip Flop
3. Rewrite Truth Table in terms of Qn
1 0 (present state)& Qn+1(next state)
4. Characteristics Table of SR-Flip Flop
5. Characteristic Equation
1 6. Excitation Table
0
1
Clk S R Q Q’
1 0 0 Q Q’ Memo
ry
1 0 1 0 1 Reset
1 1 0 1 0 Set
1 1 1 Invalid Invalid Invalid
2. Truth Table of SR Flipflop 1. Circuit Diagram of SR-Flip Flop
Clk S R Qn Qn’ 2. Working of SR-Flip Flop
3. Rewrite Truth Table in terms of Qn
1 0 0 Q Q’ Memo
ry
(present state)& Qn+1(next state)
4. Characteristics Table of SR-Flip Flop
1 0 1 0 1 Reset 5. Characteristic Equation
1 1 0 1 0 Set 6. Excitation Table
1 1 1 Invalid Invalid Invalid
4. Characteristics Table of SR-Flip Flop
[Link] Truth Table in terms of Qn (present state)& Qn+1(next state)
Qn S R Qn+1
Clk S R Qn+1 0 0 0 0
CHARACTERISTIC TABLES
1 0 0 Qn Using the characteristic table, the 0 0 1 0
1 0 1 0 “next state” of a flip flop can be
obtained when the “inputs” and
0 1 0 1
1 1 0 1 “present state” of the flip flop are 0 1 1 Invalid
1 1 1 Invalid available.
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 Invalid
4. Characteristics Table of SR-Flip Flop
Qn S R Qn+1
0 0 0 0
0 0 1 0
0 1 0 1
0 1 1 Invalid
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 Invalid
When the data input is set to 1, the flip flop would be set, and when it is set to 0, the flip flop would
become reset
Truth Table
5. Characteristic Equation
𝑄𝑛+1 =D
EXCITATION TABLES
4. Characteristics Table of SR-Flip Flop This table can be used for finding the “inputs” of the flip flop
provided “present state” and “next state” values are available.
Qn D Qn+1
0 0 0 Qn Qn+1 D
0 1 1 0 0 0
1 0 0 0 1 1
1 1 1 1 0 0
CHARACTERISTIC TABLES 1 1 1
Using the characteristic table, the
“next state” of a flip flop can be
obtained when the “inputs” and
“present state” of the flip flop are
available.
If Clk=1, J=1, K=1, Q=1, Q’=0
0
1
1 1
1
1 1
0 0
1
1
1
0
1
1 1→0
1
1 1
0 0→1
1
1
1
If Clk=1, J=1, K=1, Q=1 Q’=0
Race Around Condition in J K Flip-flop Output Q=0 , Q’=1
•For J -K flip-flop, if J =K=1, and if clk=1 for a long We understand that output is
period of time, then output Q will toggle as long as Toggled with Previous state
CLK remains high which makes the output
or uncertain.
•This is called a race around condition in J -K flip-
flop.
•We can overcome this problem by making the
=1 for very less duration. The circuit used to
overcome race around conditions is called the
Master S lave J K flip flop.
T -Flipflop / Toggle Flip flop
Inputs Output
Clk T Output
1 0 Nochange
1 1 Toggles
Characteristic Table
Excitation Table
Characteristic Table
Excitation Table
Characteristic Table
Excitation Table
Characteristic Table
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
SR Flip Flop to JK Flip Flop
Steps for Flip Flop Conversion
1. Note the Available and Required FF
2. Write the Characteristic Table of Required
FF
3. Write the Excitation Table of Available FF
4. Solve Boolean Expression
Characteristic Table 5. Draw Circuit
Excitation Table
SR Flip Flop to T Flip Flop
Steps for Flip Flop Conversion
1. Note the Available and Required FF
2. Write the Characteristic Table of Required FF
3. Write the Excitation Table of Available FF
4. Solve Boolean Expression
5. Draw Circuit
Characteristic Table
Excitation Table
Steps for Flip Flop Conversion
1. Note the Available and
Required FF
2. Write the Characteristic
Table of Required FF
3. Write the Excitation Table of
Available FF
4. Solve Boolean Expression
5. Draw Circuit
By
Dr Sirisha Daggubati
Clk=1 Master FF will be activated
Clk=0 Slave FF will be activated
ON OFF
Qm,
Qn
1 Clk=0
Qn
Q’m
The next state output we have got will not have any effect on the master-
Hence there will not be any oscillations in the output-Race around
condition is eliminated
OFF ON
Qm,
Qn=Qm
0 Clk=1
Qn=Q’m
Q’m
The next state output we have got will not have any effect on the master-
Hence there will not be any oscillations in the output-Race around
condition is eliminated
J=1, K=1, Qn=1 and Qn’=0
0 1 Qm=0
1 Qn=1
1
1 0
1
0 Qn=0
1
1 Qm=1
J=1, K=1, Qn=1 and Qn’=0
0 Qm=0 Qm=0
1 1 0
1 1 Qn=1→0
1 1
0 1 1
1 1
0 Qn=0→1
1 0 1
1 Q’m=1 Q’m=1
Excitation Table-SR FlipFlop Excitation Table-JK FlipFlop Excitation Table-D FlipFlop Excitation Table-T FlipFlop
Qn Qn+1 S R Qn Qn+1 J K Qn Qn+1 D Qn Qn+1 T
0 0 0 X 0 0 0 X 0 0 0 0 0 0
0 1 1 0 0 1 1 X 0 1 1 0 1 1
1 0 0 1 1 0 X 1 1 0 0 1 0 1
1 1 X 0 1 1 X 0 1 1 1 1 1 0
Counters
Basics, Types, Classifications, and Applications
5. Designing as well implementation are complex Designing as well as implementation is very easy.
6. Operate in any desired count sequence. Operate only in fixed count sequence (UP/DOWN).
Synchronous Counter examples are: Ring Asynchronous Counter examples are: Ripple UP
7.
counter, Johnson counter. counter, Ripple DOWN counter.