Академический Документы
Профессиональный Документы
Культура Документы
SHIFT REGISTERS
Shift registers are very important devices in applications that involve the storage and the transfer of data in a
digital system. The difference between a register and a counter is that the register has no specified series of
states. A register is solely used for storing and shifting data (that is 1s and 0s) that have been entered from an
external source.
The storage capacity of a register is the number of bits (of digital data) it can retain. Each stage of a shift
register represents the one bit of information it can store, so the number of stages in a shift register represents
the total storage capacity of a register. Shown below is how a Flip-Flop is used as a storage device.
D
C
It can be seen that when the clock is going HIGH, that is on a rising edge, the input on the D becomes the
output.
There are various type of shift register, and shown below are simplified diagrams of the most
commonly used.
Serial input
Serial Output
Clock
The diagram above shows a shift register that will hold four bits at any one time. On the rising edge of a clock
pulse, the data is fed into the register. After four clock pulses the register is full and the next pulse will start to
release the data in the order in which it entered.
Shown below is a 5-bit shift register and the corresponding timing diagram.
Data Input
D
FF0
C
Q0
D
FF1
C
Q1
Q2
Q
D
FF2
D
FF3
Q3
D
FF4
Q4
Data Output
Clock
The timing diagram is shown below. The main point to note is the data shifting through the registers.
Data
Clock
Q0
0
1
Q1
Q2
0
1
Q3
Q4
TIMING DIAGRAM FOR A FIVE BIT SHIFT REGISTER
Shown above are the values contained in each Flip-Flop after five clock pulses.
Q0
Serial
Data Input
D
FF0
C
Q
D
FF2
FF1
C
Q3
Q
D
FF3
C
Clock
The above Serial Input Parallel Output (SIPO) shift register has the summarised symbol shown below.
SRG 4
Ck
Q0 Q1 Q2 Q3
Below is shown the timing diagram for this 4-bit serial input parallel output shift register.
Clock
Data
Q0
Q1
Q2
Q3
This looks very similar to the serial-input serial-output timing diagram, but in this timing diagram the clock
pulse signifies that the serial data is on the output.
D0
D3
D2
SHIFT / LOAD
Q0
FF0
C
Q1
FF1
C
D Q2
FF2
C
Clock
Q3
FF3
C
SERIAL
DATA
OUTPUT
Notice that there are four input Lines. The key feature of this shift register is the SHIFT / LOAD line. When this
line is LOW then the AND gates on the right hand side of each grouping is enabled and thus any parallel data
can get through to the Flip-Flops. When this line is HIGH then the AND gate on the left hand side of each
grouping is enabled and the data can flow through the Flip-Flops to be seen as a serial data output. Like before
this gate is summarised into a more convenient logic symbol as shown below.
D0 D1 D2 D3
SHIFT / LOAD
SRG 4
SERIAL DATA OUT
Ck
CLOCK
Clock
SHIFT / LOAD
DATA OUT
Q
1
Final Data Bit
D0
Parallel Data
Input
D1
D0
Q0
D1 Q 1
FF1
FF0
C
D3
D2
D3 Q3
FF3
D2 Q 2
FF2
Clock
Q0
Q1
Parallel Data
Output
Q2
Q3