1733320979170
1733320979170
Latches/ Flipflops
The S-R (SET-RESET) Latch
The main difference between latches and flip-flops is in
the method used for changing their state. Flip Flops are
edge-triggered and latches are level-triggered.
A latch is a temporary storage device, where the
output of each gate is connected to an input of the
opposite gate.
The Gated S-R Latch
A gated latch requires an enable input, EN (sometimes
designated as G). The latch will not change until EN is
HIGH; but as long as it remains HIGH, the output is
controlled by the state of the S and R inputs.
The JK Flip-Flop
The J and K inputs of the J-K flip-flop are synchronous
inputs because data are transferred to the flip-flop’s
output only on the triggering edge of the clock pulse.
Registers
A register is a digital circuit with two basic functions:
data storage and data movement. A 1 is applied to
the data input of a D flip-flop as shown in the figure,
and a clock pulse is applied that stores the 1 by setting
the flip-flop. When the 1 on the input is removed, the
The storage capacity of a register is the total number
flip-flop remains in the SET state, thereby storing the 1.
of bits (1s and 0s) of digital data it can retain.
A similar procedure applies to the storage of a 0 by
resetting the flip-flop. Each stage (flip-flop) in a shift register represents one
bit of storage capacity; therefore, the number of
stages in a register determines its storage capacity.
The shift capability of a register permits the movement
of data from stage to stage within the register or into
or out of the register upon application of clock pulses.
The 7 figures in the next slide illustrate the types of data
movement in shift registers. The block represents any
arbitrary 4-bit register, and the arrows indicate the
direction of data movement.
Types of Shift Register Data I/Os
Serial In/Serial Out Shift Registers
The serial in/serial out shift register accepts data
serially—that is, one bit at a time on a single line.
It produces the stored information on its output also in
serial form.
The following is a 4-bit device implemented with D flip-
flops. With four stages, this register can store up to four
bits of data.
The table below shows the entry of the four bits 1010 shift register (SRG)
into the register in the previous slide, beginning with with an 8-bit
the least significant bit. The register is initially clear. capacity.
Synchronous Counters
The term synchronous refers to events that have a fixed
time relationship with each other. A synchronous
counter is one in which all the flip-flops in the counter
are clocked at the same time by a common clock
pulse. J-K flip-flops are used to illustrate most
synchronous counters.
A timing diagram of the counter operation is shown The complete timing diagram is shown below. Notice
below. that the propagation delays are not indicated.
Although the delays are an important factor in the
synchronous counter operation, in an overall timing
diagram they are normally omitted for simplicity.
A 3-Bit Synchronous Binary Counter
This counter operation can be
understood by examining its sequence
of states as shown in the presented
table.
The analysis of the counter is
summarized in the next slide.
A 4-Bit Synchronous
Binary Counter
This particular counter
is implemented with
negative edge-
triggered flipflops.