075582814553
Shift Register: Classification and Working Principle

FREE-SKY (HK) ELECTRONICS CO.,LIMITED / 06-30 14:40

The shift register is a sequential logic circuit that can be used to store or transmit data in the form of binary numbers. It loads the input data and then moves or "shifts" it to its output every clock cycle, so it is called a shift register.

Ⅰ Introduction

In digital circuits, the circuits used to store binary data or codes are called registers. The register is a combination of flip-flops with a storage function. A flip-flop can store one bit of binary code, and then register that stores the N bit of binary code needs n flip-flops to form. According to its function, it can be divided into a basic register and a shift register.

The shift register is a sequential logic circuit that can be used to store or transmit data in the form of binary numbers. It loads the input data and then moves or "shifts" it to its output every clock cycle, so it is called a shift register. A shift register is basically composed of several single-bit "D-Latches", each data bit represents a logic "0" or "1", connected in a serial daisy-chain together, so that the output from one data latch becomes the input to the next latch.

The data in the shift register can be shifted bit by bit to the right or left under the action of the shift pulse. The data can be input in parallel, output in parallel, input in serial, output in serial, input in parallel, and output in serial, input in serial, output in parallel.

Shift registers can be used to register codes, and can also be used to implement the serial-parallel conversion of data, numerical operations, and data processing. Shift registers are used for data storage or data movement, so they are usually used inside calculators or computers. For example, two binary numbers can be stored before being added, or data can be converted from serial to parallel or parallel or parallel-serial format. The data latches that make up the shift register are all driven by a common clock (Clk) signal, making it a synchronous device.

There are many types of commonly used integrated shift registers, such as 74X164, 74X165, 74X166, 74X595 are eight-bit unidirectional shift registers, 74195 is four-bit unidirectional shift registers, 74194 is four-bit bidirectional shift registers, and 74198 is an eight-bit bidirectional shift register.

74LS674

74LS674

Ⅱ Classification 

According to the shift direction, it is often divided into three types: left shift register, right shift register, and bidirectional shift register;

The shift register can be used for data calculation and data processing, and realize the serial-parallel conversion of data. It can also be connected to various shift register counters, such as ring counters and twisted ring counters.

According to the input-output mode of shifted data, it can be divided into four circuit structures: serial input-serial output, serial input-parallel output, parallel input-serial output, and parallel input-parallel output.

(1) Serial input to parallel output (SIPO)-The register is loaded with serial data one bit at a time, and the stored data is provided in parallel at the output.

(2) Serial input to serial output (SISO)-The data is shifted serially on the "IN" and "OUT" of the register and shifted one bit at a time in the left or right direction under clock control.

(3) Parallel input to serial output (PISO)-Parallel data is loaded into the register at the same time, and is serially shifted out of the register one bit at a time under the clock control.

(4) Parallel input to parallel output (PIPO)-Parallel data is loaded into the registers at the same time, and transmitted to their respective outputs through the same clock pulse.

Ⅲ Principle of the shift register

The shift register can not only register data but also shift the data in it to the left or right in sequence under the clock signal.

The principle of the four-bit shift register: F0, F1, F2, and F3 are four edge-triggered flip-flops D, and the output Q of each flip-flop is connected to the input D of the flip-flop on the right. Because there is a delay from the rising edge of the clock signal CP is applied to the flip-flops until the new state of the output terminal is stably established, so when the clock signal is simultaneously applied to the four flip-flops, each flip-flop accepts the original data in the flip-flop on the left (input data D1 received by F0). The data in the register is shifted one bit to the right.

Four-bit shift register composed of D flip-flops 

Four-bit shift register composed of D flip-flops

The shift register can move the stored data bit by bit to the left or right to achieve the required functions during the operation of the computer, see the picture:

4-bit serial input mobile register circuit schematic diagram 

4-bit serial input mobile register circuit schematic diagram

When starting, first add a clear pulse to the clear end to set the trigger output to 0. Then, the first data D0 is added to the serial input terminal of flip-flop 1, at the rising edge of the first CLK pulse, Q0=Q0, Q1=Q2. Q3=Q0. After that, the second data D1 is added to the serial input terminal. When the second CLK pulse arrives, Q0=Q1, Q1=Q0, Q2=Q3=0. By analogy, when the fourth CLK comes, each output terminal is Q0=Q3, Q1=Q2, Q2=Q1, Q3=Q0. The output data can be fetched in serial form or parallel open fetch.

From the perspective of logical structure, the shift register has the following two notable features: (1) The shift register is composed of the same register unit. Generally speaking, the number of register units is the number of bits of the shift register. In order to complete different shift functions, the connection between the output of each register unit and the input of the next adjacent register unit is also different. (2) All register units share a clock. Under the action of the common clock, the work of each register unit is synchronized. Each time a clock pulse is input, the data in the register moves one bit to the left or right in sequence. CMOS shift registers can usually be classified according to different data transmission methods. The data input mode of the shift register is divided into serial input and parallel input. Serial input is to send the input data from one input end to the register one by one under the action of a clock pulse; parallel input is to send the input data from several input ends to the register at the same time.  

In CMOS shift registers, some varieties have only one input method of serial or parallel, but some varieties have both serial and parallel input methods. Serial input data is added to the D terminal of the first register unit, and input under the action of a clock pulse, the data transmission speed is slow; parallel input data is generally sent from the R and S terminals of the register unit, and the transmission speed is faster. The shift direction of the shift register is divided into the right shift and left shift. The right shift means that the data is input from the lowest bit on the left and output from the highest bit on the right in turn; when shifting to the left, the first bit on the right is the lowest bit, and the leftmost bit is the highest bit. The data is input from the right of the low bit and from the high bit. Output on the left.  

The output of the shift register is also divided into serial and parallel. Serial output means that under the action of a clock pulse, the last output terminal of the register outputs the data of the register bit by bit; parallel output means that each register unit of the register has an output. Some varieties of CMOS shift registers have only one output method, but some varieties have both output methods. In fact, the parallel output mode must also have a serial output function.

Ⅳ To sum up

(1) A simple shift register can only use D-type flip-flops, one flip-flop for each data bit.

(2) The output of each flip-flop is connected to the D input of the right flip-flop.

(3) The shift register stores the data in the memory that is moved or "shifted" to its desired position in each clock pulse.

(4) Each clock pulse shifts the contents of the register one bit to the left or right.

(5) The data bits can be loaded one bit at a time in serial input (SI) configuration, or simultaneously loaded in parallel configuration (PI).

(6) For serial output (SO), data can be deleted from the register one bit at a time, or all data can be deleted from the parallel output (PO) at the same time.

(7) One application of shift registers is data conversion between serial and parallel or between parallel to serial.

(8) Shift registers are respectively recognized as SIPO, SISO, PISO, PIPO, or as general shift registers, combining all functions in a single device.


Processed in 0.540341 Second , 23 querys.