4015 Shift Register Board Instructions

4015 Shift Register Board Instructions

Table of Contents

1. Introduction

Start on the Logic Gate Board before attempting this project

1.1. Pre-learning – The Logic Gate Board

Before you learn how the Shift Register Board works, you should first learn how the Logic Gate Board works as that kit covers the basics of logic. The Logic Gate Board kit also provides multiple logic chips in the 4000 series, demonstrating how these chips work and how some of the 4000 series share similar packages and configurations. 

The logic symbol for the shift register

1.2. What is a shift register?

A shift register is a digital circuit that can both store and shift data, and shift registers are extremely important in modern logic devices (especially processors and peripherals).

In its simplest form, a shift register has a single data input, a clock input, and a parallel output showing all stored bits. When the clock input rises, all the data across the outputs is shifted once (with the very last output being thrown away), and the logic signal present on the input data pin is transferred to the very first output. Some shift registers also have a reset input which clears all the outputs.

This behaviour means that shift registers essentially convert a serial data signal (consisting of individual bits one at a time), into a parallel signal, and are commonly used in UART, SPI, and I2C peripherals.

Key Takeaways

  • Shift registers are used to store data and shift it around
  • Converts serial bitstreams to parallel bit streams
  • Usually have a data input, clock input, and reset input
The 4015 IC
4015 Pin Out

1.3. What is the 4015 shift register?

As the name suggests, the 4015 is a shift register IC that belongs to the 4000 family of ICs. While the exact origin of this chip is not known, it is likely to have been developed around the late 1960s / early 70’s.

Using CMOS technology, the 4015 consumes virtually no power when unused, and very little power when in active operation (when the clock pin is being pulsed), making it ideal for battery and low-power applications. Furthermore, the 4015 is available in both through-hole DIP and surface mount SOIC packages, making it ideal for both breadboards and PCBs in mass production.

Inside the 4015 are two independent 4-bit shift registers, each having a data input, clock input, and reset. While these two shift registers work independently, they can be combined to create a larger 8-bit shift register if the last output of the first shift register is connected to the data input of the second shift register, and both clock and reset inputs connected together.

Key Takeaways

  • The 4015 is a shift register in the 4000 CMOS logic family
  • Uses very little power, and easy to use
  • Consists of 2 independent 4-bit shift registers

2. Schematic

3. Simulation

4. How does the 4015 Shift Register Board work?

4.1. The circuit

The Shift Register Board is a simple kit that lets you get soldering experience while also learning about the 4015 shift register. Instead of having two independent shift registers, the 4015 combines them into a single 8-bit shift register, thus demonstrating how shift registers can be chained together.

The board also integrates buttons for each control input, so that they can be independently tested, and each output of both shift registers has been connected to its own LED in a row, so you can see how data is shifted across. Furthermore, to prevent multiple clock pulses when pushing the clock button, a de-bounce circuit has been included, which ignores sudden multiple presses of the clock button.

Finally, all the input and outputs are passed through to two expander pads on the side of the PCB, allowing for future expansion with other logic boards.

Key Takeaways

  • The two internal 4-bit shift registers are combined into an 8-bit shift register
  • Buttons provide input signals for the 4015

4.2. Clock skew bug / Not a bug, but a feature!

When the 4015 kit was initially designed, it was assumed by our engineers that simply connecting the two independent shift registers together would be sufficient. However, while this is certainly the case in an ideal world, the real world that we actually live in is anything but.

Depending on environmental conditions, when using the shift register, it is possible for data from the first shift register to get shifted into the second shift register early, with data that arrives at the fourth LED also appearing on the fifth LED. The reason why this can happen comes down to the speed of electric signals.

In an ideal circuit, electricity arrives at its destination instantly, but in reality, electric pulses take time to move (propagate) through wires. For basic circuits like the 555 astable, transistor flasher, or discrete op-amp, this isn’t an issue as their state isn’t governed by nanosecond timing, but for logic circuits, this timing can be everything.

Clock skew occuring between two elements in the shift register

In the case of the 4015 kit, even though both shift registers use the same clock signal, it takes time for the signal to reach both shift registers (with the first shift register getting its signal first). Furthermore, it also takes time for the clock input to register a signal and activate the internal logic of the chip.

The first shift register is clocked before the second shift register, causing the skew

Thus, if the first shift register activates before the second shift register, it is possible for the last output of the shift register to also be passed onto the second shift register. This type of glitch is often called clock skew, and can cause major havoc in large digital circuits, such as CPUs.

Key Takeaways

  • Clock skew is a serious issue for electronics
  • Solved by adding delays into clock lines, using resistors and capacitors
  • 4015 Shift Register Board is prone to clock skew
Cut the trace to pin 1 and use some long wire to fix the skew

4.3. How to fix clock skew

To fix clock skew, the best solution is to introduce a delay in the clock signal. One such method for introducing a delay is to include RC circuits which take time to charge (something which is used in the Discrete Digital to Analogue Converter).

Another method is to make the connection between two points longer, and this is why you will often see meandering traces in high-speed circuit boards. In the case of the 4015 kit, a longer wire would need to be added to the clock of the first shift register, so that the second shift register activates before the first.

5. Component List

ComponentPCB ReferenceQuantityLooks Like
8 DIP SocketU21
16 DIP SocketU11
LM358 Op-AmpU21
4015 Shift RegisterU11
1K ResistorR5 - R1713
100K ResistorR1- R44
100nF CapacitorC1, C2, C33
3mm Red LEDD1 - D1111
Tactile SwitchSW2, SW3, SW43
Slide SwitchSW11
PP3 ConnectorBT11

6. PCB

7. Construction Tips

7.1. Electronics Construction Guide

To learn more about how to solder electronic components, download the Electronics Construction Manual free using the button below

7.2. Component Order

Solder the components in this order to keep things simple

  1. Resistors
  2. IC Socket
  3. Capacitors
  4. LED
  5. Switches

Watch out for the PP3 connector!

  • Make sure the red wire is connected to VCC (sometimes V+)
  • Make sure the black wire is connected to 0V (sometimes GND)

Double-check your components BEFORE soldering!

  • MitchElectronics kits use double-sided PCBs with plated through-holes
  • This makes the PCBs extremely strong
  • It also makes de-soldering very hard, so be sure components are inserted correctly

7.3. Final Thoughts

Try stress-testing the chips!

  • Use a signal generator to test how fast the logic circuits can respond to signals