Lecture #13
Lecture #13
Lecture #13
Multivibrators:
Multivibrators fall into three categories: astable, monostable, and bistable.
Astable Multivibrators: The output is unstable in either state. That is, the output
continually changes from 0 to 1 to 0, etc. Astable multivibrators are used as the time base
for automatic and / or sequential devices.
1
Monostable Multivibrators:
The output is stable in one state and unstable in the other. The specific
behavior is that the “input” is a “trigger” which causes the output to make a
transition from the stable to the unstable state, where it remains for a
length of time (τ), and then reverts to the stable state.
2
Bistable Multivibrators:
The output is stable in both states although the input can “trigger” a
transition from one state to the other.
The two categories of bistable devices are the latch and the flip-flop. The
basic difference between latches and flip-flops is the way in which they are
changed from one state to the other.
3
2. Memory Elements: Latches and flip-flops
The basic SR latch
Its inputs, Set(S) and Reset (R), provide the means for changing the state, Q, of the
circuit.
When both inputs, R and S, are equal to 0 the latch maintains its existing state.
When R = 0 and S = 1, the latch is set into a state where Qa = 1 and Qb = 0.
When R = 1 and S = 0, the latch is reset into a state where Qa = 0 and Qb = 1.
When R = S = 1, both Qa and Qb will be 0. (In normal operation, this condition is avoided)
4
Gated SR Latch
It includes two extra AND gates.
When the clock signal Clk is equal to 0, the S’ and R’ inputs to the
latch will be 0, regardless of the values of signals S and R.
Hence the latch will maintain its existing state as long as Clk = 0.
When Clk changes to 1, the S’ and R’ signals will be the same as the S and R signals,
respectively.
Therefore, in this mode it will behave as the basic latch.
we will often say that the latch is set when Q = 1, and it is reset when Q = 0.
5
Gated SR Latch with NAND Gates
We can also construct the latch with NAND gates.
6
Gated D Latch
Has a single data input, called D, and it stores the value on this input, under the
control of a clock signal.
7
Master-Slave and Edge-Triggered D Flip-Flops
flip-flop denotes a storage element that changes its output state at the edge of a controlling clock
signal.
Master-Slave D Flip-Flop
Consider the circuit given below, which consists of two gated D latches.
The first, called master, changes its state while Clock = 1.
The second, called slave, changes its state while Clock = 0.
After clock changes to 1, any further change in D will not affect the output latch as long as
clock=1.
Suppose first that D = 0 at the positive edge of the clock. Then P2 = 0, which will keep the output
of gate 4 equal to 1 as long as Clock = 1, regardless of the value of the D input.
The second case is if D = 1 at the positive edge of the clock. Then P1 = 0, which forces the
outputs of gates 1 and 3 to be equal to 1, regardless of the D input.
The circuit responds to the positive clock edge.
9
D Flip-Flops with Clear and Preset
The figure below shows a positive edge triggered D- flip-flop with Clear and Preset
capability.
The flip-flop operates normally when the Clear input is equal to 1. But if Clear goes
to 0, then on the next positive edge of the clock the flip-flop will be cleared to 0.
11
T Flip-Flop
By including some simple logic circuitry to drive its input, the D flip-flop may be
modified to a different storage element, T-flip-flop.
12
JK Flip-Flop
Another circuit can be derived from the T-flip-flop above.
Instead of using a single control input, T, we can use two inputs, J and K.
13