The most common use of flip-flops is the storage and transfer of data or
information. Data may represent numerical values (for example binary numbers) or
some other data which have been coded in binary form. In general, data are stored
in groups of flip-flops called registers.
The following animation shows data transfer between two registers using D-
type flip-flops. Flip-Flops X1, X2. and X3 belong to register X, while flip-flops Y1, Y2,
and Y3 belong to register Y. When the transfer clock pulse is applied, the level
stored in X1 is transferred to Y1, X2 to Y2, and X3, to Y3. This transfer takes place in
a synchronous way and it is known as parallel transfer because the content of each
FF is transferred simultaneously to a parallel FF within another register. In serial
transfer the content of a register will be transferred one bit at a time. You will learn
this during the following experiments. It is important though to understand that
parallel transfer will not change the contents of the source register which keep their
values before and after the clock pulse.
In actual practice only synchronous shift registers are used. The design of
shift registers is based on the procedures used in designing synchronous counters.
The input functions for J and K are determined.
The following picture shows the symbol used for latch groups and shift
registers. It is important that you keep it in mind because it later will be used in some
circuits. The ANSI symbol is similar to this one. When chip latches or registers are
used, you will find their corresponding symbols.
1. 4-bit Shift Register, Serial-In / Serial-Out
A. Aim
This experiment will allow you to look into the working principle of serial data
transmission using a flip-flop shift register.
B. Equipment
1. UniTrain-I Module
3. Computer
4. Cable
C. Step
1. Look at the following flip-flop group and try to infer the way in which it will
behave. Complete the truth table accordingly. Do not confuse the logic
analyzer's outputs Q0 and Q1 with the FF outputs Q1, Q2, Q3, and Q4.
2. Assemble the shift register according to the previous diagram and the
following animation.
We did not connect the R and S inputs of the flip-flops in this circuit. Actually
the inputs are internally connected to HIGH voltage. You can see it in the diagram. In
the previous experiments usually all inputs had been explicitly connected to the
UniTrain-I Interface in order to better illustrate their effect on the output. Now we will
just omit their explicit connection.
3. Open the Logic Analyzer and the workspace "4-bit shift register" and click
"OK".
4. Apply the outputs and read the inputs by clicking Settings | Start
Measurement at the menu or by pressing the "Start/Stop measurement"
button.
5. Copy the resulting screen with right click + Copy and paste it into the space
below with right click + Paste. Then answer the following question(s).
QUESTIONS:
1. According to the previous time diagram and truth table, what is the data
(number) at the Data input E which we are trying to transmit through this 4-bit
shift register?
Decimal 10 : 1010
Decimal 9: 1001
Decimal 2: 0010
3. How many clock pulses are necessary in order to read the desired complete
number at Q4 (serially)?
clock pulses
A. Aim
This experiment will allow you to look into the working principle of serial data
transmission using a circular flip-flop shift register.
B. Equipment
3. Computer
4. Cable
C. Step
1. Modify the connections of the circuit used in the previous experiment as
follows:
2. The data (number) we want to transmit this time through the circular
register is decimal 12 (1100). It will be set first by shortly connecting the S
and R inputs of the flip-flops to LOW (0V) as shown in the animation.
3. After having the flip-flops correctly set remove the cables from their
asynchronous inputs.
4. Open the Logic Analyzer and the workspace "Circular shift register" and
click "OK".
5. Apply the outputs and read the inputs by clicking Settings | Start
Measurement at the menu or by pressing the "Start/Stop measurement"
button.
6. Copy the resulting screen with right click + Copy and paste it into the
space below with right click + Paste.
7. Now set the data to decimal 1 (0001) by shortly connecting the S and R
inputs of the flip-flops to LOW (0V) as you did in the previous part of the
experiment. After having the flip-flops correctly set remove the cables from
their asynchronous inputs.
8. Run the measurement from the logic analyzer once more. Copy the
resulting screen with right click + Copy and paste it into the space below
with right click + Paste. Then answer the questions below.
QUESTIONS:
1. How many clock pulses are necessary in this case in order to read the desired
complete number at Q4 (serially)?
clock pulses
2. What is different from the simple shift register of the previous exercise
concerning the way the output moves through the register?
The circular shift register performs destructive readout, where
each bit is lost once it has been shifted out of the rightmost flip-flop.
The previous arrangement performed destructive readout, where
each bit is lost once it has been shifted out of the rightmost flip-flop.
There seems to be no difference.
3. Which of the following statements describes the operation of this circuit most
best?
The data pattern contained within the shift register will
recirculate as long as clock pulses are applied.
The rightmost bit is destructed or lost after it reaches the
last flip-flop.
The rightmost bit is fed once more to the first flip-flop.
3-bit Shift Register, Serial-In / Parallel-Out
A. Aim
This experiment will allow you to look into the working principle of parallel data
transmission using a flip-flop shift register.
B. Equipment
3. Computer
4. Cable
C. Step
1. Open the Logic Analyzer and the workspace "Shift Register SP 1" and click
"OK".
2. Apply the outputs and read the inputs by clicking Settings | Start
Measurement at the menu or by pressing the "Start/Stop measurement"
button. Run the measurement at least twice, just to make sure the flip-
flops at the beginning had been correctly reset.
3. Copy the resulting screen with right click + Copy and paste it into the space
below with right click + Paste.
4. Repeat the previous steps for the workspace named "Shift Register SP 2".
Copy the resulting screen with right click + Copy and paste it into the space
below with right click + Paste.
5. Repeat the previous steps for the workspace named "Shift Register SP 3".
Copy the resulting screen with right click + Copy and paste it into the space
below with right click + Paste.
QUESTIONS:
1. Apart from FF 4 not being used do you notice any difference in the
connections as compared to the simple serial-in / serial-out 4-bit shift register?
There is no other difference in the connections as compared to the
simple 4-shift register.
Yes, this circuit is connected as a circular or ring shift register.
Yes, this time, the flip-flops are used in their asynchronous
configuration.
2. Observe the time diagrams obtained. Which workspace does the following
truth table correspond to?
3. Which is the data (number) which is serially going into the input of the shift
register from the previous truth table?
Decimal 3: 011
Decimal 1: 111
Decimal 6: 110
4. After how many clock pulses is the data from the previous answer available to
be read parallelly at bits Q1 to Q3?
The data is available at bits Q1 to Q3 after complete clock pulses.
5. What is(are) the main difference(s) between the first simple shift register for
serial-in / serial-out used two experiments before?