Before you learn how the 4013 D-Type Flip Flop 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.
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.
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.
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.
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.
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.
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.
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.
Component | PCB Reference | Quantity | Looks Like |
---|---|---|---|
8 DIP Socket | U2 | 1 | |
14 DIP Socket | U1 | 1 | |
LM358 Dual Op-Amp | U1 | 1 | |
4015 Dual 4-bit Shift Register IC | U1 | 1 | |
100nF Ceramic Disc Capacitor | C1, C2, C3 | 3 | |
1K Resistor | R5 - R17 | 13 | |
100K Resistor | R1 - R4 | 4 | |
3mm Red LED | D1 - D11 | 11 | |
Tactile Switch | SW2, SW4, SW5 | 3 | |
Miniature Slide Switch | SW1 | 1 | |
PP3 Battery Connector | BT1 | 1 |
To learn more about how to solder electronic components, download the Electronics Construction Manual free using the button below
Electronics Construction ManualWhen soldering components, it is essential that you do so in a particular order, so that it is easy to add components and get to their legs. Generally, you always start with the smaller components (such as resistors and capacitors), before moving onto the larget parts (potentiometers and ICs).
Soldering GuideUse a signal generator to test how fast the logic circuits can respond to signals