Professional Documents
Culture Documents
based Systems
1
Mokhtar Nibouche
mokhtar.nibouche@uwe.ac.uk
Room 2N36
Department of Engineering Design and Mathematics
Faculty of Environment and Technology
University of the West of England
Objectives
2
Combinational Memory
Outputs Outputs
Combinational Memory
Circuit Elements
Internal Feedback
External Inputs
Rectangular
pulse train.
(a)
A transition from 0
to 1 is called a
positive transition
or rising edge. (b)
A transition from
1 to 0 is called a
negative transition
or negative edge.
(c)
SR Flip Flop
8
S Q
Clk
R Q
S R Clk Q
0 0 Q0 (no Change)
0 1 0
1 0 1
1 1 (invalid)
The truth table (or transition table) shows how the SR flip
flop responds to the transition of the clock for all possible
combinations of the inputs S and R.
Q0 defines the state of Q prior to the transition of the clock.
The arrow defines the transition of the clock (positive
transition or rising edge). The arrow will also define
another possible transition of the clock (negative transition or
falling edge).
Clocked flip flops are also called edged-triggered flip flops.
SR Flip Flop
10
Clk
No Clear or
Set Set
Change Reset
S Q S R Clk Q
0 0 Q0 (no Change)
Clk
0 1 0
R Q 1 0 1
1 1 (invalid)
J K Clk Q
J Q
0 0 Q0 (no Change)
Clk 0 1 0
1 0 1
K Q
1 1 Q 0 (toggle)
J K Clk Q
J Q
0 0 Q0 (no Change)
Clk 0 1 0
K Q 1 0 1
1 1 Q 0 (toggle)
Clk
Clear or
Toggle No Set Toggle Toggle
Reset Change
D Q D Clk Q
Clk 0 0
1 1
Q
D J Q D Q
Clk Clk Clk
K Q Q
Clk
All the flip flop that have been introduced had only synchronous
inputs (control inputs and clock).
However, most flip flops have at least one asynchronous input
that operate independently of synchronous inputs.
These asynchronous are used to force the flip flop to a HIGH state
(Q = 1) or to a LOW state (Q = 0). These two operations are called
SET and RESET.
A D flip flop has two asynchronous inputs PRN (PRESET) and
CLRN (CLEAR) that are active low.
Setup Time of a Flip Flop
19
D Q EN D Q
0 x Q0 (no Change)
1 0 0
En Q
1 1 1
Set
Clear
Clock
Clock
Q0
Output of the 1st FF
Q1
Output of the 2nd FF
Q2
Output of the 3rd FF
Q3
Output of the 4th FF
1 2 3 4 5 6 7
Shift Registers
24
D_in
Clock
Set
Clear
Qa
Qb
Qc
Qd
Frequency Division and Counting
25
Clock
Q2
Q1
Q0
000 001 010 011 100 101 110 111 000 001
It is clear from the waveform that each output of a flip flop,
the frequency is halved.
Very useful for circuits that requires different frequencies.
Frequency Division and Counting
27
Clock
Q2
Q1
Q1
Q0
Q0
000 111 110 101 100 011 010 001 000 111
Frequency Division and Counting
31
Q2 Q1 Q0 22 21 20
Q2 Q1 Q0
000
0 0 0
111 001 1 1 1
1 1 0
1 0 1
110 010 1 0 0
0 1 1
0 1 0
101 011 0 0 1
SET
Q0 SET
Q1 SET
Q2
J Q J Q J Q
1.
If Tc = 0.2 ms TQ1= 22x0.2 = 0.8ms
If Tc = 0.2 ms TQ2= 23x0.2 = 1.6ms
Tc = 16 x 0.2 = 24 x 0.2 5 flip flops are required
Q2 Q1 Q0
2.
000
101 011
100