LCD Module 4A
LCD Module 4A
Module 4 Part A
1
2
Sequential Logic Circuits
Sequential Circuit -
The binary information stored in the storage elements define the state of the
system.
The next state of the storage elements is aIso a function of external inputs and
the present state.
4
Sequential Logic Circuits
There are two main types of sequential circuits, and their classification is a
function of the timing of their signals.
5
Sequential Logic Circuits
A synchronous sequential circuit employs signals that affect the storage
elements at only discrete instants of time.
The clock signal is commonly denoted by the identifiers clock and clk.
The clock pulses are distributed throughout the system in such a way that
storage elements are affected only with the arrival of each pulse.
Synchronous sequential circuits that use clock pulses to control storage elements
are called clocked sequential circuits and are the type most frequently
encountered in practice.
6
Sequential Logic Circuits
A flip-flop is a binary
storage device capable of
storing one bit of
information.
8
Synchronous Clocked Sequential Circuit
9
Storage Elements - Latches
The storage element in a digital circuit can maintain a binary state indefinitely ( as
long as power is delivered to the circuit), until directed by an input signal to switch
the states.
The major difference among the types storage elements - are the no of i/ps they
possess as well as the manner in which the i/ps affect the binary state.
Storage elements that operate with signal levels ( rather than signal transitions)
are referred to as latches;
10
Storage Elements - Latches
- Latches are the basic circuits from which all flip-flops are constructed.
11
SR Latch
The SR latch is a circuit with two cross-coupled NOR gates or two
cross-coupled NAND gates,
12
SR Latch
Two input conditions cause the circuit to be in the set
state.
15
SR Latch
16
D Latch ( Transparent Latch )
17
D Latch ( Transparent Latch )
The D latch receives that designation from
its ability to hold data in its storage.
18
19
Storage Elements ( Flip-Flops )
The state of a latch or flip-flop - is switched by a change in the control input.
D-Latch - when the control i/p remains at the logic-1 level, any change in the data input will
change the o/p and the state of the latch.
The key to the proper operation of a flip-flop - is to trigger it only during a signal transition.
1) Employ two latches in a special configuration that isolates the o/p of the flip-flop and
prevents it from being affected while the i/p to the flip-flop is changing.
2) Produce a flip-flop that triggers only during the signal transition ( from 0 to 1 or from 1 to 0)
of the synchronising signal (clock) and is disabled during the rest of the clock pulse.
20
Storage Elements ( Flip-Flops )
21
Edge-Triggered D Flip-Flop
The construction of a D flip-flop with two D latches and an inverter is shown in Fig
5.9
The first latch is called the master and the second the slave.
22
Edge-Triggered D Flip-Flop
When the clock is 0, the slave latch is enabled and its output Q is equal to the
master output Y.
When the input pulse changes to logic-1 level, the data from the external D input
are transferred to the master.
23
Edge-Triggered D Flip-Flop
The behavior of the master-slave flip-flop
(2) a change in the o/p is triggered by the negative edge of the clock, and
(3) the change may occur only during clock's negative level.
24
Edge-Triggered D Flip-Flop
It is also possible to design the circuit so that the flip-flop o/p changes on the +ve
edge of the clock.
25
Edge-Triggered D Flip-Flop Using Three S-R latches
Two latches respond to the
external data ( D-i/p) and Clk
i/ps.
26
27
Setup and Hold Time
The timing of the response of a flip-flop to input data and to the cbck must be
taken into consideration when one is using edge-triggered flip-flops.
There is a minimum time called the setup time during which the D input must be
maintained at a constant value prior to the occurrence of the clock transition.
Similarly, there is a minimum time called the hold time during which the D input
must not change after the application of the positive transition of the clock.
The propagation delay time of the flip-flop is defined as the interval between the
trigger edge and the stabilization of the output to a new state.
28
JK Flip-Flop
There are three operations that can be
performed with a flip-flop
- Set it to 1
- Reset it to 0
D = JQ′ + K′Q
When both J = K = 1 and D = Q′, the next clock edge complements the o/p.
When both J = K = 0 and D = Q, the clock edge leaves the o/p unchanged.
30
T ( toggle ) Flip-Flop
The T (toggle) Flip-flop is a complementing
flip-flop.
32
Characteristic Tables
A characteristic table defines the logical properties of a
flip-flop by describing its operation in tabular form.
They define the next state (i.e., the state that results from
a clock transition) as a function of the inputs and the
present state.
Q(t) refers to the present state (it., the state present prior
to the application of a clock edge).
33
Characteristic Equations
The logical properties of a flip-flop, as
described in the characteristic table, can
be expressed algebraically with a
characteristic equation.
34
Characteristic Equations
For the JK flip-flop, the characteristic
equation can be derived from the
characteristic table or from the circuit of Fig
5.12
35
Characteristic Equations
For the T flip-flop, the characteristic
equation can be derived from the
characteristic table or from the circuit of Fig
5.13
36
Direct inputs
Some flip-flops have asynchronous inputs
The i/p that sets the the flip-flop to one is called a preset or direct set.
The i/p that clears the flip-flop to zero is called clear or direct reset.
37
Direct inputs
A positive-edge-triggered D flip-flop with active-low asynchronous reset is
shown in Fig. 5.14.
38